#320F52#320F52

#320F52 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.114 H 303.1°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#320F52
RGBrgb(50, 15, 82)
HSLhsl(271, 69%, 19%)
HSVhsv(271, 82%, 32%)
CMYKcmyk(39%, 81.7%, 0%, 67.8%)
CIE-LABlab(13.41, 31.42, -33.54)
CIE-LCHlch(13.41, 45.96, 313.13°)
OKLaboklab(26.76% 0.0622 -0.0956)
OKLCHoklch(26.76% 0.114 303.1)
XYZxyz(3.0088, 1.6290, 8.1369)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F52 #2F520F
analogous
#110F52 #320F52 #520F51
triadic
#320F52 #52320F #0F5232
tetradic
#320F52 #52110F #2F520F #0F5152
square
#320F52 #52110F #2F520F #0F5152
split-complementary
#320F52 #51520F #0F5211
monochromatic
#10051A #12061E #320F52 #521886 #7122B9

Accessibility & contrast

On white

15.84
#320F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#320F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F52
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F52#FFFFFF#000000##FFFFFF
##320F521.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#2B2030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #320f52;
/* rgb */ color: rgb(50, 15, 82);
/* oklch */ color: oklch(26.8% 0.114 303.1);
Tailwind
colors: {
  custom: {
    50: '#6e5183',
    500: '#320f52',
    950: '#000000',
  },
}
SCSS
$custom: #320f52;
$custom-light: #6e5183;
$custom-dark: #000000;
JSON
{
  "hex": "#320f52",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 271.343,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26764,
    "c": 0.11409,
    "h": 303.1
  },
  "luminance": 0.01629
}

Semantic roles & 50–950 ramp

primary
#320F52
secondary
#5C8C31
accent
#EC3C90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #320F52

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

Preview Lab → · Contrast checker → · Palette generator →

#320F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva