#4123A5#4123A5

#4123A5 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.191 H 283.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4123A5
RGBrgb(65, 35, 165)
HSLhsl(254, 65%, 39%)
HSVhsv(254, 79%, 65%)
CMYKcmyk(60.6%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.85, 47.90, -64.49)
CIE-LCHlch(26.85, 80.33, 306.60°)
OKLaboklab(39.09% 0.0454 -0.1859)
OKLCHoklch(39.09% 0.191 283.7)
XYZxyz(9.5704, 5.0419, 36.0589)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123A5 #87A523
analogous
#2346A5 #4123A5 #8223A5
triadic
#4123A5 #A54123 #23A541
tetradic
#4123A5 #A52346 #87A523 #23A582
square
#4123A5 #A52346 #87A523 #23A582
split-complementary
#4123A5 #A58223 #46A523
monochromatic
#190E40 #2D1873 #4123A5 #5732D3 #8064DE

Accessibility & contrast

On white

10.46
#4123A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4123A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123A5
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123A5#FFFFFF#000000##FFFFFF
##4123A51.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4123a5;
/* rgb */ color: rgb(65, 35, 165);
/* oklch */ color: oklch(39.1% 0.191 283.7);
Tailwind
colors: {
  custom: {
    50: '#8262c1',
    500: '#4123a5',
    950: '#000000',
  },
}
SCSS
$custom: #4123a5;
$custom-light: #8262c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4123a5",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 253.846,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39093,
    "c": 0.19136,
    "h": 283.7
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#4123A5
secondary
#ADC460
accent
#E840C1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4123A5

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

Preview Lab → · Contrast checker → · Palette generator →

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