#4127A5#4127A5

#4127A5 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.188 H 283.2°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4127A5
RGBrgb(65, 39, 165)
HSLhsl(252, 62%, 40%)
HSVhsv(252, 76%, 65%)
CMYKcmyk(60.6%, 76.4%, 0%, 35.3%)
CIE-LABlab(27.55, 45.91, -63.34)
CIE-LCHlch(27.55, 78.23, 305.94°)
OKLaboklab(39.58% 0.0427 -0.1826)
OKLCHoklch(39.58% 0.188 283.2)
XYZxyz(9.6949, 5.2908, 36.1004)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127A5 #8BA527
analogous
#274CA5 #4127A5 #8027A5
triadic
#4127A5 #A54127 #27A541
tetradic
#4127A5 #A5274C #8BA527 #27A580
square
#4127A5 #A5274C #8BA527 #27A580
split-complementary
#4127A5 #A58027 #4CA527
monochromatic
#1A1042 #2D1B74 #4127A5 #5839D0 #826ADC

Accessibility & contrast

On white

10.20
#4127A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4127A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127A5
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127A5#FFFFFF#000000##FFFFFF
##4127A51.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4127a5;
/* rgb */ color: rgb(65, 39, 165);
/* oklch */ color: oklch(39.6% 0.188 283.2);
Tailwind
colors: {
  custom: {
    50: '#8265c1',
    500: '#4127a5',
    950: '#000000',
  },
}
SCSS
$custom: #4127a5;
$custom-light: #8265c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4127a5",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 252.381,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.39579,
    "c": 0.18753,
    "h": 283.2
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#4127A5
secondary
#AFC266
accent
#E543C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4127A5

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

Preview Lab → · Contrast checker → · Palette generator →

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