#4123A7#4123A7

#4123A7 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.194 H 283.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4123A7
RGBrgb(65, 35, 167)
HSLhsl(254, 65%, 40%)
HSVhsv(254, 79%, 65%)
CMYKcmyk(61.1%, 79%, 0%, 34.5%)
CIE-LABlab(27.06, 48.48, -65.35)
CIE-LCHlch(27.06, 81.38, 306.57°)
OKLaboklab(39.3% 0.0448 -0.1884)
OKLCHoklch(39.3% 0.194 283.4)
XYZxyz(9.7539, 5.1152, 37.0251)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123A7 #89A723
analogous
#2347A7 #4123A7 #8323A7
triadic
#4123A7 #A74123 #23A741
tetradic
#4123A7 #A72347 #89A723 #23A783
square
#4123A7 #A72347 #89A723 #23A783
split-complementary
#4123A7 #A78323 #47A723
monochromatic
#1A0E42 #2D1874 #4123A7 #5833D4 #8166DF

Accessibility & contrast

On white

10.38
#4123A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4123A7
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123A7#FFFFFF#000000##FFFFFF
##4123A71.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4123a7;
/* rgb */ color: rgb(65, 35, 167);
/* oklch */ color: oklch(39.3% 0.194 283.4);
Tailwind
colors: {
  custom: {
    50: '#8363c2',
    500: '#4123a7',
    950: '#000000',
  },
}
SCSS
$custom: #4123a7;
$custom-light: #8363c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4123a7",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 253.636,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39299,
    "c": 0.19368,
    "h": 283.4
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#4123A7
secondary
#AEC461
accent
#E83FC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4123A7

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

Preview Lab → · Contrast checker → · Palette generator →

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