#4123A6#4123A6

#4123A6 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.193 H 283.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4123A6
RGBrgb(65, 35, 166)
HSLhsl(254, 65%, 39%)
HSVhsv(254, 79%, 65%)
CMYKcmyk(60.8%, 78.9%, 0%, 34.9%)
CIE-LABlab(26.96, 48.19, -64.92)
CIE-LCHlch(26.96, 80.85, 306.59°)
OKLaboklab(39.2% 0.0451 -0.1872)
OKLCHoklch(39.2% 0.193 283.5)
XYZxyz(9.6618, 5.0784, 36.5401)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123A6 #88A623
analogous
#2347A6 #4123A6 #8223A6
triadic
#4123A6 #A64123 #23A641
tetradic
#4123A6 #A62347 #88A623 #23A682
square
#4123A6 #A62347 #88A623 #23A682
split-complementary
#4123A6 #A68223 #47A623
monochromatic
#190E41 #2D1873 #4123A6 #5732D4 #8165DF

Accessibility & contrast

On white

10.42
#4123A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4123A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123A6
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123A6#FFFFFF#000000##FFFFFF
##4123A61.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4123a6;
/* rgb */ color: rgb(65, 35, 166);
/* oklch */ color: oklch(39.2% 0.193 283.5);
Tailwind
colors: {
  custom: {
    50: '#8362c2',
    500: '#4123a6',
    950: '#000000',
  },
}
SCSS
$custom: #4123a6;
$custom-light: #8362c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4123a6",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 253.74,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39196,
    "c": 0.19251,
    "h": 283.5
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#4123A6
secondary
#ADC461
accent
#E840C2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4123A6

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

Preview Lab → · Contrast checker → · Palette generator →

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