#421266#421266

#421266 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.137 H 305.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#421266
RGBrgb(66, 18, 102)
HSLhsl(274, 70%, 24%)
HSVhsv(274, 82%, 40%)
CMYKcmyk(35.3%, 82.4%, 0%, 60%)
CIE-LABlab(18.14, 38.42, -39.12)
CIE-LCHlch(18.14, 54.83, 314.49°)
OKLaboklab(31.18% 0.0795 -0.1114)
OKLCHoklch(31.18% 0.137 305.5)
XYZxyz(4.8608, 2.5502, 12.8040)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421266 #366612
analogous
#181266 #421266 #661260
triadic
#421266 #664212 #126642
tetradic
#421266 #661812 #366612 #126066
square
#421266 #661812 #366612 #126066
split-complementary
#421266 #606612 #126618
monochromatic
#11051A #200932 #421266 #641B9A #8524CE

Accessibility & contrast

On white

13.91
#421266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#421266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421266
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421266#FFFFFF#000000##FFFFFF
##4212661.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#3B283C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #421266;
/* rgb */ color: rgb(66, 18, 102);
/* oklch */ color: oklch(31.2% 0.137 305.5);
Tailwind
colors: {
  custom: {
    50: '#7b5692',
    500: '#421266',
    950: '#000000',
  },
}
SCSS
$custom: #421266;
$custom-light: #7b5692;
$custom-dark: #000000;
JSON
{
  "hex": "#421266",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 274.286,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31177,
    "c": 0.13685,
    "h": 305.5
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#421266
secondary
#629E36
accent
#ED3B87
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #421266

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

Preview Lab → · Contrast checker → · Palette generator →

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