#320542#320542

#320542 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.109 H 314.9°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#320542
RGBrgb(50, 5, 66)
HSLhsl(284, 86%, 14%)
HSVhsv(284, 92%, 26%)
CMYKcmyk(24.2%, 92.4%, 0%, 74.1%)
CIE-LABlab(10.41, 31.89, -27.29)
CIE-LCHlch(10.41, 41.97, 319.44°)
OKLaboklab(24.21% 0.0769 -0.0772)
OKLCHoklch(24.21% 0.109 314.9)
XYZxyz(2.3529, 1.1801, 5.2570)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320542 #154205
analogous
#140542 #320542 #420534
triadic
#320542 #423205 #054232
tetradic
#320542 #421405 #154205 #053442
square
#320542 #421405 #154205 #053442
split-complementary
#320542 #344205 #054214
monochromatic
#16021C #16021C #320542 #5D097B #880EB4

Accessibility & contrast

On white

16.99
#320542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#320542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320542
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320542#FFFFFF#000000##FFFFFF
##3205421.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#021D41
Tritanopia (blue-blind)
#311424
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #320542;
/* rgb */ color: rgb(50, 5, 66);
/* oklch */ color: oklch(24.2% 0.109 314.9);
Tailwind
colors: {
  custom: {
    50: '#6d4c77',
    500: '#320542',
    950: '#000000',
  },
}
SCSS
$custom: #320542;
$custom-light: #6d4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#320542",
  "rgb": {
    "r": 50,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 284.262,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24213,
    "c": 0.1089,
    "h": 314.9
  },
  "luminance": 0.0118
}

Semantic roles & 50–950 ramp

primary
#320542
secondary
#3A8220
accent
#FC2C62
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #320542

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

Preview Lab → · Contrast checker → · Palette generator →

#320542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva