#402094#402094

#402094 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.174 H 287.0°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#402094
RGBrgb(64, 32, 148)
HSLhsl(257, 64%, 35%)
HSVhsv(257, 78%, 58%)
CMYKcmyk(56.8%, 78.4%, 0%, 42%)
CIE-LABlab(24.52, 44.26, -57.95)
CIE-LCHlch(24.52, 72.92, 307.37°)
OKLaboklab(36.92% 0.0509 -0.1668)
OKLCHoklch(36.92% 0.174 287)
XYZxyz(7.9746, 4.2607, 28.4134)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402094 #749420
analogous
#203A94 #402094 #7A2094
triadic
#402094 #944020 #209440
tetradic
#402094 #94203A #749420 #20947A
square
#402094 #94203A #749420 #20947A
split-complementary
#402094 #947A20 #3A9420
monochromatic
#140A2F #2A1562 #402094 #562BC6 #7954DA

Accessibility & contrast

On white

11.34
#402094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#402094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402094
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402094#FFFFFF#000000##FFFFFF
##4020941.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#1A4159
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402094;
/* rgb */ color: rgb(64, 32, 148);
/* oklch */ color: oklch(36.9% 0.174 287.0);
Tailwind
colors: {
  custom: {
    50: '#7f60b5',
    500: '#402094',
    950: '#000000',
  },
}
SCSS
$custom: #402094;
$custom-light: #7f60b5;
$custom-dark: #000000;
JSON
{
  "hex": "#402094",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 256.552,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36917,
    "c": 0.17441,
    "h": 287
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#402094
secondary
#A0BE52
accent
#E740B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402094

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

Preview Lab → · Contrast checker → · Palette generator →

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