#4127A3#4127A3

#4127A3 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.185 H 283.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4127A3
RGBrgb(65, 39, 163)
HSLhsl(253, 61%, 40%)
HSVhsv(253, 76%, 64%)
CMYKcmyk(60.1%, 76.1%, 0%, 36.1%)
CIE-LABlab(27.35, 45.31, -62.46)
CIE-LCHlch(27.35, 77.16, 305.96°)
OKLaboklab(39.38% 0.0432 -0.18)
OKLCHoklch(39.38% 0.185 283.5)
XYZxyz(9.5143, 5.2186, 35.1492)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127A3 #89A327
analogous
#274BA3 #4127A3 #7F27A3
triadic
#4127A3 #A34127 #27A341
tetradic
#4127A3 #A3274B #89A327 #27A37F
square
#4127A3 #A3274B #89A327 #27A37F
split-complementary
#4127A3 #A37F27 #4BA327
monochromatic
#1A0F40 #2D1B72 #4127A3 #5838CF #8169DB

Accessibility & contrast

On white

10.27
#4127A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4127A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127A3
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127A3#FFFFFF#000000##FFFFFF
##4127A31.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4127a3;
/* rgb */ color: rgb(65, 39, 163);
/* oklch */ color: oklch(39.4% 0.185 283.5);
Tailwind
colors: {
  custom: {
    50: '#8265bf',
    500: '#4127a3',
    950: '#000000',
  },
}
SCSS
$custom: #4127a3;
$custom-light: #8265bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4127a3",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 252.581,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39379,
    "c": 0.18513,
    "h": 283.5
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#4127A3
secondary
#AEC164
accent
#E443C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4127A3

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

Preview Lab → · Contrast checker → · Palette generator →

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