#4122A5#4122A5

#4122A5 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.192 H 283.8°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4122A5
RGBrgb(65, 34, 165)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 79%, 65%)
CMYKcmyk(60.6%, 79.4%, 0%, 35.3%)
CIE-LABlab(26.69, 48.37, -64.76)
CIE-LCHlch(26.69, 80.83, 306.76°)
OKLaboklab(38.98% 0.046 -0.1867)
OKLCHoklch(38.98% 0.192 283.8)
XYZxyz(9.5414, 4.9839, 36.0492)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4122A5 #86A522
analogous
#2245A5 #4122A5 #8322A5
triadic
#4122A5 #A54122 #22A541
tetradic
#4122A5 #A52245 #86A522 #22A583
square
#4122A5 #A52245 #86A522 #22A583
split-complementary
#4122A5 #A58322 #45A522
monochromatic
#190D40 #2D1872 #4122A5 #5730D4 #8063DF

Accessibility & contrast

On white

10.52
#4122A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4122A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4122A5
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4122A5#FFFFFF#000000##FFFFFF
##4122A51.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4122a5;
/* rgb */ color: rgb(65, 34, 165);
/* oklch */ color: oklch(39.0% 0.192 283.8);
Tailwind
colors: {
  custom: {
    50: '#8262c1',
    500: '#4122a5',
    950: '#000000',
  },
}
SCSS
$custom: #4122a5;
$custom-light: #8262c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4122a5",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 254.198,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38978,
    "c": 0.19226,
    "h": 283.8
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#4122A5
secondary
#ACC45F
accent
#E93FC1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4122A5

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

Preview Lab → · Contrast checker → · Palette generator →

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