Crayola crayon color

Crayola Purple Heart #7442C8

Crayola Purple Heart is shown here as #7442C8, the commonly published value for the crayon. It is a vivid violet in the violet family. In OKLCH it sits at lightness 0.512, chroma 0.197 and hue 295.8°. The nearest CSS named color is blueviolet (#8A2BE2), ΔE2000 5.3 away.

Relative luminance
0.1178
OKLCH L · C · h
0.512 · 0.197 · 295.8
Best text
White 6.25:1
Hue family
Violet

#7442C8 color codes

HEX
#7442C8
RGB
rgb(116, 66, 200)
HSL
hsl(262, 55%, 52%)
OKLCH
oklch(0.512 0.197 295.8)
OKLab
oklab(0.512 0.086 -0.177)
CIELAB (D65)
L* 40.86, a* 50.17, b* -62.08
XYZ (D65)
X 19.57, Y 11.78, Z 55.87
CMYK (naive)
cmyk(42%, 67%, 0%, 22%)

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 #7442C8 accessible?

White text on it reaches 6.25:1, passing AA. Black text manages only 3.35: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.35:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +23
  • White text on it

    6.25:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −85
  • As text on black

    3.35:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −21
  • As text on white

    6.25:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +80

Nearest versions that pass 4.5:1

  • For text on white

    #7442C8 6.25:1

    It already reaches 6.25:1 on white, so no change is needed.

  • For text on black

    #8859E0 4.55:1

    Lightening its OKLCH lightness from 0.51 to 0.58 reaches 4.55:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #7442C8 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.

The studio needs JavaScript.

Scale

Shades and tints of #7442C8

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #7442C8 sits at step 600.

  1. 50#F6F3FF
    White
    1.09
    Black
    19.18
  2. 100#ECE7FF
    White
    1.20
    Black
    17.44
  3. 200#DBCFFF
    White
    1.46
    Black
    14.38
  4. 300#C4AFFF
    White
    1.92
    Black
    10.92
  5. 400#AC87FF
    White
    2.74
    Black
    7.66
  6. 500#9365ED
    White
    3.94
    Black
    5.32
  7. 600This color#7442C8
    White
    6.25
    Black
    3.35
  8. 700#6533B4
    White
    7.81
    Black
    2.68
  9. 800#4C1692
    White
    11.43
    Black
    1.83
  10. 900#330069
    White
    15.61
    Black
    1.34
  11. 950#1D0041
    White
    18.60
    Black
    1.12

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #7442C8 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.280; #7442C8 uses 70% of it. Display P3, which many recent phones and laptops show, reaches 0.290 there: 3% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.197
sRGB edge
0.280
Display P3 edge
0.290
Rec. 2020 edge
0.318
Dominant wavelength
435 nm
Excitation purity
61%
Chromaticity
x 0.2244, y 0.1350
  • This color#7442C8
  • Most vivid in sRGB#7D00F0
  • Most vivid in Display P3oklch(0.512 0.290 295.8)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #7442c8;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.4511 0 0.9207); }
}

Mixing

Mixing #7442C8

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%#BAA1E4
  • OKLab50%#B5A3E8
  • OKLCH50%#B5A3E8

Black #000000

  • sRGB50%#3A2164
  • OKLab50%#29144C
  • OKLCH50%#29144C

Its complement #646E00

  • sRGB50%#6C5864
  • OKLab50%#68627C
  • OKLCH50%#00757F
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7442c8, white);
color: color-mix(in oklch, #7442c8 50%, white);

In use

#7442C8 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:16.25:1 Passes
  • Link and body-size textText, 4.5:16.25:1 Passes
  • Large headingLarge text, 3:16.25:1 Passes
  • Icons, borders and focus ringsNon-text, 3:16.25:1 Passes

Dark page

  • Button labelText, 4.5:16.25:1 Passes
  • Link and body-size textText, 4.5:12.99:1 Fails
  • Large headingLarge text, 3:12.99:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.99:1 Fails

For text on this page, the nearest shade that passes is #8F61E9 4.50:1

Color vision

How #7442C8 looks with color blindness

Achromatopsia changes it most, ΔE2000 28.6; deuteranopia changes it least, 17.7.

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

    #0061CC ΔE2000 17.9

    Distinct

    Reads as vivid blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #005EC5 ΔE2000 17.7

    Distinct

    Reads as vivid blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #5E627F ΔE2000 17.9

    Distinct

    Reads as grayish blue

  • Achromatopsia

    No cone color vision; lightness only

    #606060 ΔE2000 28.6

    Distinct

    Reads as dark gray

Pairing check

Checked against its complement, #646E00. Their lightness contrast is only 1.12:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#7442C8 · #646E0070.4Stays distinct
Protanopia#0061CC · #77680057.7Stays distinct
Deuteranopia#005EC5 · #76691056.4Stays distinct
Tritanopia#5E627F · #6B675D19.4Stays distinct
Achromatopsia#606060 · #6868683.0Easily confused

Harmony

Color harmonies for #7442C8

Its complement is #646E00, a soft yellow.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#7442C8
  • Complement#646E00

Complementary

Open in Harmony Studio
  • −30°#3059D5
  • Base#7442C8
  • +30°#9C2DA2
  • Base#7442C8
  • +120°#9B4F00
  • +240°#007864
  • Base#7442C8
  • +150°#816100
  • +210°#007D24

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-crayola-purple-heart: #7442c8;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'crayola-purple-heart': '#7442c8',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-crayola-purple-heart: oklch(0.512 0.197 295.8);
}

Design token (W3C DTCG)

{
  "color": {
    "crayola-purple-heart": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.4549, 0.2588, 0.7843],
        "hex": "#7442c8"
      },
      "$description": "Crayola Purple Heart"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let crayolaPurpleHeart = Color(.sRGB, red: 0.455, green: 0.259, blue: 0.784, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val CrayolaPurpleHeart = Color(0xFF7442C8)
}

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 #7442C8 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.