#412272#412272

#412272 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.130 H 296.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#412272
RGBrgb(65, 34, 114)
HSLhsl(263, 54%, 29%)
HSVhsv(263, 70%, 45%)
CMYKcmyk(43%, 70.2%, 0%, 55.3%)
CIE-LABlab(21.88, 33.44, -40.85)
CIE-LCHlch(21.88, 52.79, 309.30°)
OKLaboklab(34.12% 0.0585 -0.1166)
OKLCHoklch(34.12% 0.13 296.6)
XYZxyz(5.7885, 3.4827, 16.2836)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#412272 #537222
analogous
#222B72 #412272 #692272
triadic
#412272 #724122 #227241
tetradic
#412272 #72222B #537222 #227269
square
#412272 #72222B #537222 #227269
split-complementary
#412272 #726922 #2B7222
monochromatic
#0D0718 #261443 #412272 #5C30A1 #7946C8

Accessibility & contrast

On white

12.38
#412272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#412272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #412272
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##412272#FFFFFF#000000##FFFFFF
##4122721.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#353547
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #412272;
/* rgb */ color: rgb(65, 34, 114);
/* oklch */ color: oklch(34.1% 0.130 296.6);
Tailwind
colors: {
  custom: {
    50: '#7a5f9b',
    500: '#412272',
    950: '#000000',
  },
}
SCSS
$custom: #412272;
$custom-light: #7a5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#412272",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 263.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34118,
    "c": 0.13045,
    "h": 296.6
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#412272
secondary
#82A54B
accent
#DD4AA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #412272

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

Preview Lab → · Contrast checker → · Palette generator →

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