#402083#402083

#402083 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.154 H 291.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#402083
RGBrgb(64, 32, 131)
HSLhsl(259, 61%, 32%)
HSVhsv(259, 76%, 51%)
CMYKcmyk(51.1%, 75.6%, 0%, 48.6%)
CIE-LABlab(22.87, 39.29, -50.06)
CIE-LCHlch(22.87, 63.64, 308.12°)
OKLaboklab(35.26% 0.0556 -0.1437)
OKLCHoklch(35.26% 0.154 291.1)
XYZxyz(6.7264, 3.7614, 21.8399)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402083 #638320
analogous
#203283 #402083 #722083
triadic
#402083 #834020 #208340
tetradic
#402083 #832032 #638320 #208372
square
#402083 #832032 #638320 #208372
split-complementary
#402083 #837220 #328320
monochromatic
#100821 #281452 #402083 #582CB4 #774AD3

Accessibility & contrast

On white

11.98
#402083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#402083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402083
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402083#FFFFFF#000000##FFFFFF
##4020831.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003481
Tritanopia (blue-blind)
#2A3A50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #402083;
/* rgb */ color: rgb(64, 32, 131);
/* oklch */ color: oklch(35.3% 0.154 291.1);
Tailwind
colors: {
  custom: {
    50: '#7c5fa8',
    500: '#402083',
    950: '#000000',
  },
}
SCSS
$custom: #402083;
$custom-light: #7c5fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#402083",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 131
  },
  "hsl": {
    "h": 259.394,
    "s": 60.736,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.15408,
    "h": 291.1
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#402083
secondary
#93B649
accent
#E444B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #402083

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

Preview Lab → · Contrast checker → · Palette generator →

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