#4126A2#4126A2

#4126A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.185 H 283.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4126A2
RGBrgb(65, 38, 162)
HSLhsl(253, 62%, 39%)
HSVhsv(253, 77%, 64%)
CMYKcmyk(59.9%, 76.5%, 0%, 36.5%)
CIE-LABlab(27.07, 45.52, -62.31)
CIE-LCHlch(27.07, 77.17, 306.15°)
OKLaboklab(39.15% 0.0442 -0.1796)
OKLCHoklch(39.15% 0.185 283.8)
XYZxyz(9.3927, 5.1181, 34.6684)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4126A2 #87A226
analogous
#2649A2 #4126A2 #7F26A2
triadic
#4126A2 #A24126 #26A241
tetradic
#4126A2 #A22649 #87A226 #26A27F
square
#4126A2 #A22649 #87A226 #26A27F
split-complementary
#4126A2 #A27F26 #49A226
monochromatic
#190F3F #2D1A70 #4126A2 #5735D0 #8067DB

Accessibility & contrast

On white

10.38
#4126A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4126A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4126A2
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4126A2#FFFFFF#000000##FFFFFF
##4126A21.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)
#0044A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#014963
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4126a2;
/* rgb */ color: rgb(65, 38, 162);
/* oklch */ color: oklch(39.2% 0.185 283.8);
Tailwind
colors: {
  custom: {
    50: '#8264bf',
    500: '#4126a2',
    950: '#000000',
  },
}
SCSS
$custom: #4126a2;
$custom-light: #8264bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4126a2",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 253.065,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.18494,
    "h": 283.8
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#4126A2
secondary
#ADC163
accent
#E543C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4126A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4126A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva