#4123B4#4123B4

#4123B4 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.7% C 0.209 H 281.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4123B4
RGBrgb(65, 35, 180)
HSLhsl(252, 67%, 42%)
HSVhsv(252, 81%, 71%)
CMYKcmyk(63.9%, 80.6%, 0%, 29.4%)
CIE-LABlab(28.43, 52.26, -70.89)
CIE-LCHlch(28.43, 88.07, 306.40°)
OKLaboklab(40.66% 0.0408 -0.2046)
OKLCHoklch(40.66% 0.209 281.3)
XYZxyz(11.0166, 5.6203, 43.6755)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123B4 #96B423
analogous
#234DB4 #4123B4 #8A23B4
triadic
#4123B4 #B44123 #23B441
tetradic
#4123B4 #B4234D #96B423 #23B48A
square
#4123B4 #B4234D #96B423 #23B48A
split-complementary
#4123B4 #B48A23 #4DB423
monochromatic
#1C0F4E #2E1981 #4123B4 #5C3BD9 #876EE3

Accessibility & contrast

On white

9.89
#4123B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4123B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123B4
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123B4#FFFFFF#000000##FFFFFF
##4123B41.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4123b4;
/* rgb */ color: rgb(65, 35, 180);
/* oklch */ color: oklch(40.7% 0.209 281.3);
Tailwind
colors: {
  custom: {
    50: '#8563cc',
    500: '#4123b4',
    950: '#000000',
  },
}
SCSS
$custom: #4123b4;
$custom-light: #8563cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4123b4",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 180
  },
  "hsl": {
    "h": 252.414,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40661,
    "c": 0.20859,
    "h": 281.3
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#4123B4
secondary
#B6C969
accent
#EA3DC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4123B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4123B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva