#4A23A4#4A23A4

#4A23A4 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.189 H 288.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4A23A4
RGBrgb(74, 35, 164)
HSLhsl(258, 65%, 39%)
HSVhsv(258, 79%, 64%)
CMYKcmyk(54.9%, 78.7%, 0%, 35.7%)
CIE-LABlab(27.68, 48.76, -62.49)
CIE-LCHlch(27.68, 79.26, 307.96°)
OKLaboklab(39.86% 0.0595 -0.1798)
OKLCHoklch(39.86% 0.189 288.3)
XYZxyz(10.1239, 5.3377, 35.6116)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A23A4 #7DA423
analogous
#233CA4 #4A23A4 #8B23A4
triadic
#4A23A4 #A44A23 #23A44A
tetradic
#4A23A4 #A4233C #7DA423 #23A48B
square
#4A23A4 #A4233C #7DA423 #23A48B
split-complementary
#4A23A4 #A48B23 #3CA423
monochromatic
#1C0D3F #331872 #4A23A4 #6231D3 #8964DE

Accessibility & contrast

On white

10.16
#4A23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4A23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A23A4
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A23A4#FFFFFF#000000##FFFFFF
##4A23A41.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#254863
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a23a4;
/* rgb */ color: rgb(74, 35, 164);
/* oklch */ color: oklch(39.9% 0.189 288.3);
Tailwind
colors: {
  custom: {
    50: '#8763c0',
    500: '#4a23a4',
    950: '#000000',
  },
}
SCSS
$custom: #4a23a4;
$custom-light: #8763c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a23a4",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 258.14,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.18939,
    "h": 288.3
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#4A23A4
secondary
#A5C360
accent
#E840B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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