#4A23CA#4A23CA

#4A23CA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.8% C 0.232 H 281.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4A23CA
RGBrgb(74, 35, 202)
HSLhsl(254, 70%, 46%)
HSVhsv(254, 83%, 79%)
CMYKcmyk(63.4%, 82.7%, 0%, 20.8%)
CIE-LABlab(31.63, 59.29, -78.56)
CIE-LCHlch(31.63, 98.42, 307.04°)
OKLaboklab(43.76% 0.0472 -0.2267)
OKLCHoklch(43.76% 0.232 281.8)
XYZxyz(14.0824, 6.9211, 56.4595)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A23CA #A3CA23
analogous
#2350CA #4A23CA #9E23CA
triadic
#4A23CA #CA4A23 #23CA4A
tetradic
#4A23CA #CA2350 #A3CA23 #23CA9E
square
#4A23CA #CA2350 #A3CA23 #23CA9E
split-complementary
#4A23CA #CA9E23 #50CA23
monochromatic
#241162 #371A96 #4A23CA #6D4AE0 #977FE9

Accessibility & contrast

On white

8.81
#4A23CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4A23CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A23CA
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A23CA#FFFFFF#000000##FFFFFF
##4A23CA1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050CE
Deuteranopia (green-blind)
#0044C7
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a23ca;
/* rgb */ color: rgb(74, 35, 202);
/* oklch */ color: oklch(43.8% 0.232 281.8);
Tailwind
colors: {
  custom: {
    50: '#8d66dc',
    500: '#4a23ca',
    950: '#000000',
  },
}
SCSS
$custom: #4a23ca;
$custom-light: #8d66dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a23ca",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 202
  },
  "hsl": {
    "h": 254.012,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43762,
    "c": 0.23152,
    "h": 281.8
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#4A23CA
secondary
#BCD178
accent
#ED3BC4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4A23CA

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

Preview Lab → · Contrast checker → · Palette generator →

#4A23CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva