#4023A3#4023A3

#4023A3 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.189 H 283.6°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4023A3
RGBrgb(64, 35, 163)
HSLhsl(254, 65%, 39%)
HSVhsv(254, 79%, 64%)
CMYKcmyk(60.7%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.55, 47.19, -63.78)
CIE-LCHlch(26.55, 79.34, 306.50°)
OKLaboklab(38.8% 0.0444 -0.1839)
OKLCHoklch(38.8% 0.189 283.6)
XYZxyz(9.3242, 4.9358, 35.1046)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023A3 #86A323
analogous
#2346A3 #4023A3 #8023A3
triadic
#4023A3 #A34023 #23A340
tetradic
#4023A3 #A32346 #86A323 #23A380
square
#4023A3 #A32346 #86A323 #23A380
split-complementary
#4023A3 #A38023 #46A323
monochromatic
#180D3E #2C1871 #4023A3 #5531D3 #7F63DD

Accessibility & contrast

On white

10.57
#4023A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4023A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023A3
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023A3#FFFFFF#000000##FFFFFF
##4023A31.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4023a3;
/* rgb */ color: rgb(64, 35, 163);
/* oklch */ color: oklch(38.8% 0.189 283.6);
Tailwind
colors: {
  custom: {
    50: '#8162bf',
    500: '#4023a3',
    950: '#000000',
  },
}
SCSS
$custom: #4023a3;
$custom-light: #8162bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4023a3",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 253.594,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38797,
    "c": 0.18914,
    "h": 283.6
  },
  "luminance": 0.04936
}

Semantic roles & 50–950 ramp

primary
#4023A3
secondary
#ACC35F
accent
#E840C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4023A3

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

Preview Lab → · Contrast checker → · Palette generator →

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