#4A23A7#4A23A7

#4A23A7 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.193 H 287.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4A23A7
RGBrgb(74, 35, 167)
HSLhsl(258, 65%, 40%)
HSVhsv(258, 79%, 65%)
CMYKcmyk(55.7%, 79%, 0%, 34.5%)
CIE-LABlab(27.97, 49.59, -63.82)
CIE-LCHlch(27.97, 80.82, 307.85°)
OKLaboklab(40.15% 0.0586 -0.1837)
OKLCHoklch(40.15% 0.193 287.7)
XYZxyz(10.3981, 5.4474, 37.0553)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A23A7 #80A723
analogous
#233EA7 #4A23A7 #8C23A7
triadic
#4A23A7 #A74A23 #23A74A
tetradic
#4A23A7 #A7233E #80A723 #23A78C
square
#4A23A7 #A7233E #80A723 #23A78C
split-complementary
#4A23A7 #A78C23 #3EA723
monochromatic
#1D0E42 #341874 #4A23A7 #6333D4 #8966DF

Accessibility & contrast

On white

10.05
#4A23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4A23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A23A7
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A23A7#FFFFFF#000000##FFFFFF
##4A23A71.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#224965
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a23a7;
/* rgb */ color: rgb(74, 35, 167);
/* oklch */ color: oklch(40.2% 0.193 287.7);
Tailwind
colors: {
  custom: {
    50: '#8763c2',
    500: '#4a23a7',
    950: '#000000',
  },
}
SCSS
$custom: #4a23a7;
$custom-light: #8763c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a23a7",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 257.727,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40153,
    "c": 0.1928,
    "h": 287.7
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#4A23A7
secondary
#A7C461
accent
#E83FB6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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