#4023A7#4023A7

#4023A7 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.194 H 282.9°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4023A7
RGBrgb(64, 35, 167)
HSLhsl(253, 65%, 40%)
HSVhsv(253, 79%, 65%)
CMYKcmyk(61.7%, 79%, 0%, 34.5%)
CIE-LABlab(26.97, 48.37, -65.51)
CIE-LCHlch(26.97, 81.44, 306.44°)
OKLaboklab(39.21% 0.0433 -0.1889)
OKLCHoklch(39.21% 0.194 282.9)
XYZxyz(9.6883, 5.0814, 37.0220)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023A7 #8AA723
analogous
#2348A7 #4023A7 #8223A7
triadic
#4023A7 #A74023 #23A740
tetradic
#4023A7 #A72348 #8AA723 #23A782
square
#4023A7 #A72348 #8AA723 #23A782
split-complementary
#4023A7 #A78223 #48A723
monochromatic
#190E42 #2D1874 #4023A7 #5633D4 #8066DF

Accessibility & contrast

On white

10.41
#4023A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4023A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023A7
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023A7#FFFFFF#000000##FFFFFF
##4023A71.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4023a7;
/* rgb */ color: rgb(64, 35, 167);
/* oklch */ color: oklch(39.2% 0.194 282.9);
Tailwind
colors: {
  custom: {
    50: '#8262c2',
    500: '#4023a7',
    950: '#000000',
  },
}
SCSS
$custom: #4023a7;
$custom-light: #8262c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4023a7",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 253.182,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3921,
    "c": 0.19382,
    "h": 282.9
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#4023A7
secondary
#AFC461
accent
#E83FC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4023A7

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

Preview Lab → · Contrast checker → · Palette generator →

#4023A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva