#320742#320742

#320742 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.106 H 314.6°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#320742
RGBrgb(50, 7, 66)
HSLhsl(284, 81%, 14%)
HSVhsv(284, 89%, 26%)
CMYKcmyk(24.2%, 89.4%, 0%, 74.1%)
CIE-LABlab(10.73, 30.95, -26.77)
CIE-LCHlch(10.73, 40.93, 319.14°)
OKLaboklab(24.44% 0.0745 -0.0757)
OKLCHoklch(24.44% 0.106 314.6)
XYZxyz(2.3746, 1.2235, 5.2643)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320742 #174207
analogous
#150742 #320742 #420735
triadic
#320742 #423207 #074232
tetradic
#320742 #421507 #174207 #073542
square
#320742 #421507 #174207 #073542
split-complementary
#320742 #354207 #074215
monochromatic
#15031C #15031C #320742 #5C0D79 #8613B1

Accessibility & contrast

On white

16.87
#320742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320742
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320742#FFFFFF#000000##FFFFFF
##3207421.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#311525
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #320742;
/* rgb */ color: rgb(50, 7, 66);
/* oklch */ color: oklch(24.4% 0.106 314.6);
Tailwind
colors: {
  custom: {
    50: '#6d4d77',
    500: '#320742',
    950: '#000000',
  },
}
SCSS
$custom: #320742;
$custom-light: #6d4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#320742",
  "rgb": {
    "r": 50,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 283.729,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24437,
    "c": 0.1062,
    "h": 314.6
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#320742
secondary
#3D8124
accent
#F73166
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #320742

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

Preview Lab → · Contrast checker → · Palette generator →

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