#421262#421262

#421262 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.133 H 307.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#421262
RGBrgb(66, 18, 98)
HSLhsl(276, 69%, 23%)
HSVhsv(276, 82%, 38%)
CMYKcmyk(32.7%, 81.6%, 0%, 61.6%)
CIE-LABlab(17.80, 37.43, -37.04)
CIE-LCHlch(17.80, 52.66, 315.29°)
OKLaboklab(30.82% 0.0806 -0.1053)
OKLCHoklch(30.82% 0.133 307.4)
XYZxyz(4.6672, 2.4728, 11.7843)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421262 #326212
analogous
#1A1262 #421262 #62125A
triadic
#421262 #624212 #126242
tetradic
#421262 #621A12 #326212 #125A62
square
#421262 #621A12 #326212 #125A62
split-complementary
#421262 #5A6212 #12621A
monochromatic
#11051A #1F092E #421262 #651B96 #8825C9

Accessibility & contrast

On white

14.05
#421262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#421262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421262
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421262#FFFFFF#000000##FFFFFF
##4212621.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002C60
Tritanopia (blue-blind)
#3D2639
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #421262;
/* rgb */ color: rgb(66, 18, 98);
/* oklch */ color: oklch(30.8% 0.133 307.4);
Tailwind
colors: {
  custom: {
    50: '#7a568f',
    500: '#421262',
    950: '#000000',
  },
}
SCSS
$custom: #421262;
$custom-light: #7a568f;
$custom-dark: #000000;
JSON
{
  "hex": "#421262",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 276,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30823,
    "c": 0.13258,
    "h": 307.4
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#421262
secondary
#5E9A36
accent
#EC3C82
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #421262

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#421262 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva