#320F5C#320F5C

#320F5C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.126 H 298.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#320F5C
RGBrgb(50, 15, 92)
HSLhsl(267, 72%, 21%)
HSVhsv(267, 84%, 36%)
CMYKcmyk(45.7%, 83.7%, 0%, 63.9%)
CIE-LABlab(14.36, 34.18, -38.76)
CIE-LCHlch(14.36, 51.67, 311.41°)
OKLaboklab(27.73% 0.0593 -0.1109)
OKLCHoklch(27.73% 0.126 298.1)
XYZxyz(3.4175, 1.7924, 10.2891)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F5C #395C0F
analogous
#0F125C #320F5C #580F5C
triadic
#320F5C #5C320F #0F5C32
tetradic
#320F5C #5C0F12 #395C0F #0F5C58
square
#320F5C #5C0F12 #395C0F #0F5C58
split-complementary
#320F5C #5C580F #125C0F
monochromatic
#0E041A #150627 #320F5C #4F1891 #6B20C5

Accessibility & contrast

On white

15.46
#320F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#320F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F5C
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F5C#FFFFFF#000000##FFFFFF
##320F5C1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#272435
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #320f5c;
/* rgb */ color: rgb(50, 15, 92);
/* oklch */ color: oklch(27.7% 0.126 298.1);
Tailwind
colors: {
  custom: {
    50: '#6f528b',
    500: '#320f5c',
    950: '#000000',
  },
}
SCSS
$custom: #320f5c;
$custom-light: #6f528b;
$custom-dark: #000000;
JSON
{
  "hex": "#320f5c",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 267.273,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27726,
    "c": 0.12579,
    "h": 298.1
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#320F5C
secondary
#689531
accent
#EF399C
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #320F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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