#320F5A#320F5A

#320F5A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.123 H 299.1°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#320F5A
RGBrgb(50, 15, 90)
HSLhsl(268, 71%, 21%)
HSVhsv(268, 83%, 35%)
CMYKcmyk(44.4%, 83.3%, 0%, 64.7%)
CIE-LABlab(14.16, 33.62, -37.73)
CIE-LCHlch(14.16, 50.54, 311.70°)
OKLaboklab(27.53% 0.06 -0.1079)
OKLCHoklch(27.53% 0.123 299.1)
XYZxyz(3.3312, 1.7579, 9.8347)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F5A #375A0F
analogous
#0F115A #320F5A #570F5A
triadic
#320F5A #5A320F #0F5A32
tetradic
#320F5A #5A0F11 #375A0F #0F5A57
square
#320F5A #5A0F11 #375A0F #0F5A57
split-complementary
#320F5A #5A570F #115A0F
monochromatic
#0F041A #150626 #320F5A #4F188E #6C20C3

Accessibility & contrast

On white

15.54
#320F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#320F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320F5A
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F5A#FFFFFF#000000##FFFFFF
##320F5A1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#282334
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #320f5a;
/* rgb */ color: rgb(50, 15, 90);
/* oklch */ color: oklch(27.5% 0.123 299.1);
Tailwind
colors: {
  custom: {
    50: '#6f5289',
    500: '#320f5a',
    950: '#000000',
  },
}
SCSS
$custom: #320f5a;
$custom-light: #6f5289;
$custom-dark: #000000;
JSON
{
  "hex": "#320f5a",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 268,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27529,
    "c": 0.12345,
    "h": 299.1
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#320F5A
secondary
#669431
accent
#EE3A9A
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #320F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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