#4122A8#4122A8

#4122A8 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.196 H 283.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4122A8
RGBrgb(65, 34, 168)
HSLhsl(254, 66%, 40%)
HSVhsv(254, 80%, 66%)
CMYKcmyk(61.3%, 79.8%, 0%, 34.1%)
CIE-LABlab(27.00, 49.25, -66.05)
CIE-LCHlch(27.00, 82.39, 306.71°)
OKLaboklab(39.29% 0.0451 -0.1905)
OKLCHoklch(39.29% 0.196 283.3)
XYZxyz(9.8177, 5.0944, 37.5042)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4122A8 #89A822
analogous
#2246A8 #4122A8 #8422A8
triadic
#4122A8 #A84122 #22A841
tetradic
#4122A8 #A82246 #89A822 #22A884
square
#4122A8 #A82246 #89A822 #22A884
split-complementary
#4122A8 #A88422 #46A822
monochromatic
#1A0D42 #2D1875 #4122A8 #5832D5 #8165E0

Accessibility & contrast

On white

10.40
#4122A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4122A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4122A8
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4122A8#FFFFFF#000000##FFFFFF
##4122A81.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4122a8;
/* rgb */ color: rgb(65, 34, 168);
/* oklch */ color: oklch(39.3% 0.196 283.3);
Tailwind
colors: {
  custom: {
    50: '#8362c3',
    500: '#4122a8',
    950: '#000000',
  },
}
SCSS
$custom: #4122a8;
$custom-light: #8362c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4122a8",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 253.881,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3929,
    "c": 0.19572,
    "h": 283.3
  },
  "luminance": 0.05095
}

Semantic roles & 50–950 ramp

primary
#4122A8
secondary
#AEC561
accent
#E93FC2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4122A8

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

Preview Lab → · Contrast checker → · Palette generator →

#4122A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva