Crayola crayon color
Crayola Royal Purple #7851A9
Crayola Royal Purple is shown here as #7851A9, the commonly published value for the crayon. It is a soft violet in the violet family. In OKLCH it sits at lightness 0.518, chroma 0.138 and hue 302.3°. The nearest CSS named color is slateblue (#6A5ACD), ΔE2000 7.8 away.
- Relative luminance
- 0.1274
- OKLCH L · C · h
- 0.518 · 0.138 · 302.3
- Best text
- White 5.91:1
- Hue family
- Violet
#7851A9 color codes
- HEX
#7851A9- RGB
rgb(120, 81, 169)- HSL
hsl(267, 35%, 49%)- OKLCH
oklch(0.518 0.138 302.3)- OKLab
oklab(0.518 0.074 -0.117)- CIELAB (D65)
L* 42.37, a* 34.71, b* -41.45- XYZ (D65)
X 17.85, Y 12.74, Z 39.05- CMYK (naive)
cmyk(29%, 52%, 0%, 34%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
Crayola is a trademark of Crayola LLC, which this site is not affiliated with. The value is the commonly published sRGB rendering of the crayon, not a Crayola specification.
Legibility
Contrast: is #7851A9 accessible?
White text on it reaches 5.91:1, passing AA. Black text manages only 3.54:1, enough for large text only.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
3.54:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc +24
-
White text on it
5.91:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc −84
-
As text on black
3.54:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc −22
-
As text on white
5.91:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc +79
Nearest versions that pass 4.5:1
-
For text on white
#7851A9 5.91:1
It already reaches 5.91:1 on white, so no change is needed.
-
For text on black
#8A63BC 4.59:1
Lightening its OKLCH lightness from 0.52 to 0.58 reaches 4.59:1 on black, keeping the hue.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #7851A9 live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #7851A9
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #7851A9 sits at step 600.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Gamut
How vivid #7851A9 can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.273; #7851A9 uses 51% of it. Display P3, which many recent phones and laptops show, reaches 0.285 there: 4% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.138
- sRGB edge
- 0.273
- Display P3 edge
- 0.285
- Rec. 2020 edge
- 0.316
- Dominant wavelength
- Complementary 565 nm
- Excitation purity
- 45%
- Chromaticity
- x 0.2563, y 0.1830
- This color#7851A9
- Most vivid in sRGB#8A00E5
- Most vivid in Display P3oklch(0.518 0.285 302.3)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #7851a9;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.4994 0 0.8846); }
}
Mixing
Mixing #7851A9
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#BCA8D4
- OKLab50%#B9A7D6
- OKLCH50%#B9A7D6
Black #000000
- sRGB50%#3C2955
- OKLab50%#2A1A3F
- OKLCH50%#2A1A3F
Its complement #5C7300
- sRGB50%#6A6255
- OKLab50%#69686B
- OKLCH50%#007587
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7851a9, white);
color: color-mix(in oklch, #7851a9 50%, white);
In use
#7851A9 in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:15.91:1 Passes
- Link and body-size textText, 4.5:15.91:1 Passes
- Large headingLarge text, 3:15.91:1 Passes
- Icons, borders and focus ringsNon-text, 3:15.91:1 Passes
Dark page
- Button labelText, 4.5:15.91:1 Passes
- Link and body-size textText, 4.5:13.16:1 Fails
- Large headingLarge text, 3:13.16:1 Passes
- Icons, borders and focus ringsNon-text, 3:13.16:1 Passes
For text on this page, the nearest shade that passes is #916AC5 4.52:1
Color vision
How #7851A9 looks with color blindness
Achromatopsia changes it most, ΔE2000 24.9; deuteranopia changes it least, 16.2.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#3463AC ΔE2000 17.5
Distinct
Reads as soft blue
-
Deuteranopia
No working green (medium-wavelength) cones
#3F64A7 ΔE2000 16.2
Distinct
Reads as soft blue
-
Tritanopia
No working blue (short-wavelength) cones
#6F6175 ΔE2000 16.6
Distinct
Reads as grayish magenta
-
Achromatopsia
No cone color vision; lightness only
#646464 ΔE2000 24.9
Distinct
Reads as gray
Pairing check
Checked against its complement, #5C7300. Their lightness contrast is only 1.10:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #7851A9 · #5C7300 | 66.0 | Stays distinct |
| Protanopia | #3463AC · #7B6B00 | 51.9 | Stays distinct |
| Deuteranopia | #3F64A7 · #786A12 | 49.4 | Stays distinct |
| Tritanopia | #6F6175 · #626C61 | 20.4 | Stays distinct |
| Achromatopsia | #646464 · #6A6A6A | 2.3 | Easily confused |
Harmony
Color harmonies for #7851A9
Its complement is #5C7300, a soft yellow.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#7851A9
- Complement#5C7300
Complementary
Open in Harmony Studio- −30°#4E5FB7
- Base#7851A9
- +30°#94458B
Analogous
Open in Harmony Studio- Base#7851A9
- +120°#975600
- +240°#00796C
Triadic
Open in Harmony Studio- Base#7851A9
- +150°#7E6600
- +210°#007D3F
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-crayola-royal-purple: #7851a9;
}
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'crayola-royal-purple': '#7851a9',
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
--color-crayola-royal-purple: oklch(0.518 0.138 302.3);
}
{
"color": {
"crayola-royal-purple": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.4706, 0.3176, 0.6627],
"hex": "#7851a9"
},
"$description": "Crayola Royal Purple"
}
}
}
import SwiftUI
enum Palette {
static let crayolaRoyalPurple = Color(.sRGB, red: 0.471, green: 0.318, blue: 0.663, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val CrayolaRoyalPurple = Color(0xFF7851A9)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #7851A9 in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.