#4127A6#4127A6

#4127A6 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.189 H 283.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4127A6
RGBrgb(65, 39, 166)
HSLhsl(252, 62%, 40%)
HSVhsv(252, 77%, 65%)
CMYKcmyk(60.8%, 76.5%, 0%, 34.9%)
CIE-LABlab(27.65, 46.21, -63.78)
CIE-LCHlch(27.65, 78.76, 305.92°)
OKLaboklab(39.68% 0.0425 -0.1839)
OKLCHoklch(39.68% 0.189 283)
XYZxyz(9.7863, 5.3274, 36.5816)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127A6 #8CA627
analogous
#274DA6 #4127A6 #8027A6
triadic
#4127A6 #A64127 #27A641
tetradic
#4127A6 #A6274D #8CA627 #27A680
square
#4127A6 #A6274D #8CA627 #27A680
split-complementary
#4127A6 #A68027 #4DA627
monochromatic
#1A1043 #2E1B74 #4127A6 #593AD1 #826BDC

Accessibility & contrast

On white

10.17
#4127A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4127A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127A6
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127A6#FFFFFF#000000##FFFFFF
##4127A61.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4127a6;
/* rgb */ color: rgb(65, 39, 166);
/* oklch */ color: oklch(39.7% 0.189 283.0);
Tailwind
colors: {
  custom: {
    50: '#8265c2',
    500: '#4127a6',
    950: '#000000',
  },
}
SCSS
$custom: #4127a6;
$custom-light: #8265c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4127a6",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 252.283,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39679,
    "c": 0.18872,
    "h": 283
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#4127A6
secondary
#B0C366
accent
#E543C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4127A6

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

Preview Lab → · Contrast checker → · Palette generator →

#4127A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva