#320F5D#320F5D

#320F5D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.127 H 297.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#320F5D
RGBrgb(50, 15, 93)
HSLhsl(267, 72%, 21%)
HSVhsv(267, 84%, 36%)
CMYKcmyk(46.2%, 83.9%, 0%, 63.5%)
CIE-LABlab(14.46, 34.45, -39.26)
CIE-LCHlch(14.46, 52.24, 311.27°)
OKLaboklab(27.83% 0.059 -0.1124)
OKLCHoklch(27.83% 0.127 297.7)
XYZxyz(3.4615, 1.8100, 10.5208)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F5D #3A5D0F
analogous
#0F135D #320F5D #590F5D
triadic
#320F5D #5D320F #0F5D32
tetradic
#320F5D #5D0F13 #3A5D0F #0F5D59
square
#320F5D #5D0F13 #3A5D0F #0F5D59
split-complementary
#320F5D #5D590F #135D0F
monochromatic
#0E041A #160628 #320F5D #4E1792 #6B20C6

Accessibility & contrast

On white

15.42
#320F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F5D
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F5D#FFFFFF#000000##FFFFFF
##320F5D1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#272536
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #320f5d;
/* rgb */ color: rgb(50, 15, 93);
/* oklch */ color: oklch(27.8% 0.127 297.7);
Tailwind
colors: {
  custom: {
    50: '#6f528c',
    500: '#320f5d',
    950: '#000000',
  },
}
SCSS
$custom: #320f5d;
$custom-light: #6f528c;
$custom-dark: #000000;
JSON
{
  "hex": "#320f5d",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 266.923,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27826,
    "c": 0.12696,
    "h": 297.7
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#320F5D
secondary
#699631
accent
#EF399D
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #320F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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