#4123D4#4123D4

#4123D4 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.1% C 0.244 H 277.3°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4123D4
RGBrgb(65, 35, 212)
HSLhsl(250, 72%, 48%)
HSVhsv(250, 83%, 83%)
CMYKcmyk(69.3%, 83.5%, 0%, 16.9%)
CIE-LABlab(31.98, 61.32, -83.81)
CIE-LCHlch(31.98, 103.85, 306.19°)
OKLaboklab(44.14% 0.0308 -0.2421)
OKLCHoklch(44.14% 0.244 277.3)
XYZxyz(14.6608, 7.0780, 62.8682)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123D4 #B6D423
analogous
#235ED4 #4123D4 #9923D4
triadic
#4123D4 #D44123 #23D441
tetradic
#4123D4 #D4235E #B6D423 #23D499
square
#4123D4 #D4235E #B6D423 #23D499
split-complementary
#4123D4 #D49923 #5ED423
monochromatic
#21126B #311A9F #4123D4 #6A52E2 #9786EB

Accessibility & contrast

On white

8.69
#4123D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4123D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123D4
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123D4#FFFFFF#000000##FFFFFF
##4123D41.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D9
Deuteranopia (green-blind)
#0044D1
Tritanopia (blue-blind)
#005D7F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4123d4;
/* rgb */ color: rgb(65, 35, 212);
/* oklch */ color: oklch(44.1% 0.244 277.3);
Tailwind
colors: {
  custom: {
    50: '#8c66e3',
    500: '#4123d4',
    950: '#000000',
  },
}
SCSS
$custom: #4123d4;
$custom-light: #8c66e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4123d4",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 250.169,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44143,
    "c": 0.24407,
    "h": 277.3
  },
  "luminance": 0.07079
}

Semantic roles & 50–950 ramp

primary
#4123D4
secondary
#C6D47E
accent
#EE39D0
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0616
muted
#7E7A84

Preview Lab

Preview with #4123D4

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

Preview Lab → · Contrast checker → · Palette generator →

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