#4023A5#4023A5

#4023A5 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.191 H 283.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4023A5
RGBrgb(64, 35, 165)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 65%)
CMYKcmyk(61.2%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.76, 47.78, -64.65)
CIE-LCHlch(26.76, 80.39, 306.47°)
OKLaboklab(39% 0.0439 -0.1864)
OKLCHoklch(39% 0.191 283.2)
XYZxyz(9.5048, 5.0080, 36.0558)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023A5 #88A523
analogous
#2347A5 #4023A5 #8123A5
triadic
#4023A5 #A54023 #23A540
tetradic
#4023A5 #A52347 #88A523 #23A581
square
#4023A5 #A52347 #88A523 #23A581
split-complementary
#4023A5 #A58123 #47A523
monochromatic
#190E40 #2C1873 #4023A5 #5632D3 #7F64DE

Accessibility & contrast

On white

10.49
#4023A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4023A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023A5
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023A5#FFFFFF#000000##FFFFFF
##4023A51.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4023a5;
/* rgb */ color: rgb(64, 35, 165);
/* oklch */ color: oklch(39.0% 0.191 283.2);
Tailwind
colors: {
  custom: {
    50: '#8262c1',
    500: '#4023a5',
    950: '#000000',
  },
}
SCSS
$custom: #4023a5;
$custom-light: #8262c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4023a5",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 253.385,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.19149,
    "h": 283.2
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#4023A5
secondary
#ADC460
accent
#E840C2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4023A5

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

Preview Lab → · Contrast checker → · Palette generator →

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