#39226F#39226F

#39226F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.126 H 291.7°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#39226F
RGBrgb(57, 34, 111)
HSLhsl(258, 53%, 28%)
HSVhsv(258, 69%, 44%)
CMYKcmyk(48.6%, 69.4%, 0%, 56.5%)
CIE-LABlab(20.68, 30.83, -40.91)
CIE-LCHlch(20.68, 51.23, 307.00°)
OKLaboklab(32.96% 0.0466 -0.1171)
OKLCHoklch(32.96% 0.126 291.7)
XYZxyz(5.1278, 3.1614, 15.3759)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39226F #586F22
analogous
#22316F #39226F #5F226F
triadic
#39226F #6F3922 #226F39
tetradic
#39226F #6F2231 #586F22 #226F5F
square
#39226F #6F2231 #586F22 #226F5F
split-complementary
#39226F #6F5F22 #316F22
monochromatic
#0C0717 #211440 #39226F #51309E #6C45C6

Accessibility & contrast

On white

12.86
#39226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#39226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39226F
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39226F#FFFFFF#000000##FFFFFF
##39226F1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#293545
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #39226f;
/* rgb */ color: rgb(57, 34, 111);
/* oklch */ color: oklch(33.0% 0.126 291.7);
Tailwind
colors: {
  custom: {
    50: '#755f99',
    500: '#39226f',
    950: '#000000',
  },
}
SCSS
$custom: #39226f;
$custom-light: #755f99;
$custom-dark: #000000;
JSON
{
  "hex": "#39226f",
  "rgb": {
    "r": 57,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 257.922,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32955,
    "c": 0.12603,
    "h": 291.7
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#39226F
secondary
#88A24A
accent
#DD4BB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #39226F

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

Preview Lab → · Contrast checker → · Palette generator →

#39226F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva