#4023A2#4023A2

#4023A2 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.188 H 283.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4023A2
RGBrgb(64, 35, 162)
HSLhsl(254, 64%, 39%)
HSVhsv(254, 78%, 64%)
CMYKcmyk(60.5%, 78.4%, 0%, 36.5%)
CIE-LABlab(26.45, 46.90, -63.34)
CIE-LCHlch(26.45, 78.81, 306.52°)
OKLaboklab(38.7% 0.0447 -0.1826)
OKLCHoklch(38.7% 0.188 283.8)
XYZxyz(9.2350, 4.9001, 34.6346)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023A2 #85A223
analogous
#2345A2 #4023A2 #7F23A2
triadic
#4023A2 #A24023 #23A240
tetradic
#4023A2 #A22345 #85A223 #23A27F
square
#4023A2 #A22345 #85A223 #23A27F
split-complementary
#4023A2 #A27F23 #45A223
monochromatic
#180D3D #2C1870 #4023A2 #5530D2 #7E62DD

Accessibility & contrast

On white

10.60
#4023A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4023A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023A2
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023A2#FFFFFF#000000##FFFFFF
##4023A21.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4023a2;
/* rgb */ color: rgb(64, 35, 162);
/* oklch */ color: oklch(38.7% 0.188 283.8);
Tailwind
colors: {
  custom: {
    50: '#8162bf',
    500: '#4023a2',
    950: '#000000',
  },
}
SCSS
$custom: #4023a2;
$custom-light: #8162bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4023a2",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 253.701,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38695,
    "c": 0.18798,
    "h": 283.8
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#4023A2
secondary
#ACC25E
accent
#E740C1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4023A2

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

Preview Lab → · Contrast checker → · Palette generator →

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