#402280#402280

#402280 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.148 H 291.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#402280
RGBrgb(64, 34, 128)
HSLhsl(259, 58%, 32%)
HSVhsv(259, 73%, 50%)
CMYKcmyk(50%, 73.4%, 0%, 49.8%)
CIE-LABlab(22.97, 37.34, -48.00)
CIE-LCHlch(22.97, 60.81, 307.88°)
OKLaboklab(35.25% 0.0544 -0.1377)
OKLCHoklch(35.25% 0.148 291.6)
XYZxyz(6.5816, 3.7923, 20.8031)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402280 #628022
analogous
#223380 #402280 #6F2280
triadic
#402280 #804022 #228040
tetradic
#402280 #802233 #628022 #22806F
square
#402280 #802233 #628022 #22806F
split-complementary
#402280 #806F22 #338022
monochromatic
#10081F #281550 #402280 #582FB0 #774DD0

Accessibility & contrast

On white

11.94
#402280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#402280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402280
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402280#FFFFFF#000000##FFFFFF
##4022801.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#2B3A4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #402280;
/* rgb */ color: rgb(64, 34, 128);
/* oklch */ color: oklch(35.2% 0.148 291.6);
Tailwind
colors: {
  custom: {
    50: '#7c60a6',
    500: '#402280',
    950: '#000000',
  },
}
SCSS
$custom: #402280;
$custom-light: #7c60a6;
$custom-dark: #000000;
JSON
{
  "hex": "#402280",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 259.149,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35247,
    "c": 0.14801,
    "h": 291.6
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#402280
secondary
#92B24B
accent
#E147B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #402280

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

Preview Lab → · Contrast checker → · Palette generator →

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