#402575#402575

#402575 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.130 H 294.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#402575
RGBrgb(64, 37, 117)
HSLhsl(260, 52%, 30%)
HSVhsv(260, 68%, 46%)
CMYKcmyk(45.3%, 68.4%, 0%, 54.1%)
CIE-LABlab(22.64, 32.36, -41.54)
CIE-LCHlch(22.64, 52.65, 307.92°)
OKLaboklab(34.72% 0.0531 -0.1187)
OKLCHoklch(34.72% 0.13 294.1)
XYZxyz(5.9859, 3.6973, 17.2244)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402575 #5A7525
analogous
#253275 #402575 #682575
triadic
#402575 #754025 #257540
tetradic
#402575 #752532 #5A7525 #257568
square
#402575 #752532 #5A7525 #257568
split-complementary
#402575 #756825 #327525
monochromatic
#0D0818 #271647 #402575 #5934A3 #764EC7

Accessibility & contrast

On white

12.07
#402575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#402575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402575
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402575#FFFFFF#000000##FFFFFF
##4025751.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#313849
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #402575;
/* rgb */ color: rgb(64, 37, 117);
/* oklch */ color: oklch(34.7% 0.130 294.1);
Tailwind
colors: {
  custom: {
    50: '#7a619d',
    500: '#402575',
    950: '#000000',
  },
}
SCSS
$custom: #402575;
$custom-light: #7a619d;
$custom-dark: #000000;
JSON
{
  "hex": "#402575",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 260.25,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.13001,
    "h": 294.1
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#402575
secondary
#89A84E
accent
#DB4CAB
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #402575

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

Preview Lab → · Contrast checker → · Palette generator →

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