#4A23B2#4A23B2

#4A23B2 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.3% C 0.205 H 285.6°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4A23B2
RGBrgb(74, 35, 178)
HSLhsl(256, 67%, 42%)
HSVhsv(256, 80%, 70%)
CMYKcmyk(58.4%, 80.3%, 0%, 30.2%)
CIE-LABlab(29.09, 52.66, -68.59)
CIE-LCHlch(29.09, 86.48, 307.52°)
OKLaboklab(41.26% 0.0552 -0.1976)
OKLCHoklch(41.26% 0.205 285.6)
XYZxyz(11.4585, 5.8716, 42.6404)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A23B2 #8BB223
analogous
#2343B2 #4A23B2 #9223B2
triadic
#4A23B2 #B24A23 #23B24A
tetradic
#4A23B2 #B22343 #8BB223 #23B292
square
#4A23B2 #B22343 #8BB223 #23B292
split-complementary
#4A23B2 #B29223 #43B223
monochromatic
#1F0F4C #35197F #4A23B2 #653AD8 #8D6DE2

Accessibility & contrast

On white

9.66
#4A23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4A23B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A23B2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A23B2#FFFFFF#000000##FFFFFF
##4A23B21.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#104E6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a23b2;
/* rgb */ color: rgb(74, 35, 178);
/* oklch */ color: oklch(41.3% 0.205 285.6);
Tailwind
colors: {
  custom: {
    50: '#8964ca',
    500: '#4a23b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a23b2;
$custom-light: #8964ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a23b2",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 256.364,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41259,
    "c": 0.20515,
    "h": 285.6
  },
  "luminance": 0.05872
}

Semantic roles & 50–950 ramp

primary
#4A23B2
secondary
#AEC968
accent
#EA3EBB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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