#412268#412268

#412268 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.3% C 0.118 H 300.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#412268
RGBrgb(65, 34, 104)
HSLhsl(267, 51%, 27%)
HSVhsv(267, 67%, 41%)
CMYKcmyk(37.5%, 67.3%, 0%, 59.2%)
CIE-LABlab(21.08, 30.57, -35.66)
CIE-LCHlch(21.08, 46.98, 310.61°)
OKLaboklab(33.29% 0.0597 -0.1014)
OKLCHoklch(33.29% 0.118 300.5)
XYZxyz(5.2501, 3.2673, 13.4481)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412268 #496822
analogous
#222668 #412268 #642268
triadic
#412268 #684122 #226841
tetradic
#412268 #682226 #496822 #226864
square
#412268 #682226 #496822 #226864
split-complementary
#412268 #686422 #266822
monochromatic
#0E0817 #24133A #412268 #5E3196 #7B43C2

Accessibility & contrast

On white

12.70
#412268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#412268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412268
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412268#FFFFFF#000000##FFFFFF
##4122681.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#053266
Tritanopia (blue-blind)
#393141
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #412268;
/* rgb */ color: rgb(65, 34, 104);
/* oklch */ color: oklch(33.3% 0.118 300.5);
Tailwind
colors: {
  custom: {
    50: '#795f94',
    500: '#412268',
    950: '#000000',
  },
}
SCSS
$custom: #412268;
$custom-light: #795f94;
$custom-dark: #000000;
JSON
{
  "hex": "#412268",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 266.571,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33292,
    "c": 0.11762,
    "h": 300.5
  },
  "luminance": 0.03267
}

Semantic roles & 50–950 ramp

primary
#412268
secondary
#789C4A
accent
#DA4E9C
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09050D
muted
#7B797E

Preview Lab

Preview with #412268

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

Preview Lab → · Contrast checker → · Palette generator →

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