#4122A7#4122A7

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

Color values

HEX#4122A7
RGBrgb(65, 34, 167)
HSLhsl(254, 66%, 39%)
HSVhsv(254, 80%, 65%)
CMYKcmyk(61.1%, 79.6%, 0%, 34.5%)
CIE-LABlab(26.90, 48.96, -65.62)
CIE-LCHlch(26.90, 81.87, 306.72°)
OKLaboklab(39.19% 0.0454 -0.1892)
OKLCHoklch(39.19% 0.195 283.5)
XYZxyz(9.7249, 5.0572, 37.0154)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4122A7 #88A722
analogous
#2246A7 #4122A7 #8422A7
triadic
#4122A7 #A74122 #22A741
tetradic
#4122A7 #A72246 #88A722 #22A784
square
#4122A7 #A72246 #88A722 #22A784
split-complementary
#4122A7 #A78422 #46A722
monochromatic
#190D41 #2D1874 #4122A7 #5731D5 #8164DF

Accessibility & contrast

On white

10.44
#4122A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4122A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4122A7
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4122A7#FFFFFF#000000##FFFFFF
##4122A71.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4122a7;
/* rgb */ color: rgb(65, 34, 167);
/* oklch */ color: oklch(39.2% 0.195 283.5);
Tailwind
colors: {
  custom: {
    50: '#8362c2',
    500: '#4122a7',
    950: '#000000',
  },
}
SCSS
$custom: #4122a7;
$custom-light: #8362c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4122a7",
  "rgb": {
    "r": 65,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 253.985,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39186,
    "c": 0.19457,
    "h": 283.5
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#4122A7
secondary
#ADC560
accent
#E93FC1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4122A7

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

Preview Lab → · Contrast checker → · Palette generator →

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