#4A23B1#4A23B1

#4A23B1 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.2% C 0.204 H 285.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4A23B1
RGBrgb(74, 35, 177)
HSLhsl(256, 67%, 42%)
HSVhsv(256, 80%, 69%)
CMYKcmyk(58.2%, 80.2%, 0%, 30.6%)
CIE-LABlab(28.98, 52.39, -68.16)
CIE-LCHlch(28.98, 85.97, 307.54°)
OKLaboklab(41.16% 0.0555 -0.1963)
OKLCHoklch(41.16% 0.204 285.8)
XYZxyz(11.3585, 5.8316, 42.1135)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A23B1 #8AB123
analogous
#2343B1 #4A23B1 #9123B1
triadic
#4A23B1 #B14A23 #23B14A
tetradic
#4A23B1 #B12343 #8AB123 #23B191
square
#4A23B1 #B12343 #8AB123 #23B191
split-complementary
#4A23B1 #B19123 #43B123
monochromatic
#1F0F4B #35197E #4A23B1 #6539D8 #8D6CE2

Accessibility & contrast

On white

9.69
#4A23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A23B1
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A23B1#FFFFFF#000000##FFFFFF
##4A23B11.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#0040AE
Tritanopia (blue-blind)
#124D6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a23b1;
/* rgb */ color: rgb(74, 35, 177);
/* oklch */ color: oklch(41.2% 0.204 285.8);
Tailwind
colors: {
  custom: {
    50: '#8964ca',
    500: '#4a23b1',
    950: '#000000',
  },
}
SCSS
$custom: #4a23b1;
$custom-light: #8964ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a23b1",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 256.479,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41157,
    "c": 0.20403,
    "h": 285.8
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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