#4126C2#4126C2

#4126C2 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.5% C 0.222 H 279.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4126C2
RGBrgb(65, 38, 194)
HSLhsl(250, 67%, 45%)
HSVhsv(250, 80%, 76%)
CMYKcmyk(66.5%, 80.4%, 0%, 23.9%)
CIE-LABlab(30.41, 54.96, -75.91)
CIE-LCHlch(30.41, 93.72, 305.90°)
OKLaboklab(42.48% 0.0351 -0.2192)
OKLCHoklch(42.48% 0.222 279.1)
XYZxyz(12.6076, 6.4040, 51.6002)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4126C2 #A7C226
analogous
#2659C2 #4126C2 #8F26C2
triadic
#4126C2 #C24126 #26C241
tetradic
#4126C2 #C22659 #A7C226 #26C28F
square
#4126C2 #C22659 #A7C226 #26C28F
split-complementary
#4126C2 #C28F26 #59C226
monochromatic
#1F125C #301C8F #4126C2 #634ADB #8F7DE6

Accessibility & contrast

On white

9.21
#4126C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4126C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4126C2
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4126C2#FFFFFF#000000##FFFFFF
##4126C21.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC6
Deuteranopia (green-blind)
#0041BF
Tritanopia (blue-blind)
#005675
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4126c2;
/* rgb */ color: rgb(65, 38, 194);
/* oklch */ color: oklch(42.5% 0.222 279.1);
Tailwind
colors: {
  custom: {
    50: '#8866d6',
    500: '#4126c2',
    950: '#000000',
  },
}
SCSS
$custom: #4126c2;
$custom-light: #8866d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4126c2",
  "rgb": {
    "r": 65,
    "g": 38,
    "b": 194
  },
  "hsl": {
    "h": 250.385,
    "s": 67.241,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42475,
    "c": 0.22202,
    "h": 279.1
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#4126C2
secondary
#BFCE76
accent
#EA3ECC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4126C2

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

Preview Lab → · Contrast checker → · Palette generator →

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