#4123A2#4123A2

#4123A2 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.188 H 284.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4123A2
RGBrgb(65, 35, 162)
HSLhsl(254, 64%, 39%)
HSVhsv(254, 78%, 64%)
CMYKcmyk(59.9%, 78.4%, 0%, 36.5%)
CIE-LABlab(26.55, 47.02, -63.17)
CIE-LCHlch(26.55, 78.75, 306.66°)
OKLaboklab(38.79% 0.0463 -0.1821)
OKLCHoklch(38.79% 0.188 284.3)
XYZxyz(9.3006, 4.9339, 34.6377)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4123A2 #84A223
analogous
#2344A2 #4123A2 #8023A2
triadic
#4123A2 #A24123 #23A241
tetradic
#4123A2 #A22344 #84A223 #23A280
square
#4123A2 #A22344 #84A223 #23A280
split-complementary
#4123A2 #A28023 #44A223
monochromatic
#190D3D #2D1870 #4123A2 #5630D2 #7F62DD

Accessibility & contrast

On white

10.57
#4123A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4123A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4123A2
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4123A2#FFFFFF#000000##FFFFFF
##4123A21.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#024862
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4123a2;
/* rgb */ color: rgb(65, 35, 162);
/* oklch */ color: oklch(38.8% 0.188 284.3);
Tailwind
colors: {
  custom: {
    50: '#8262bf',
    500: '#4123a2',
    950: '#000000',
  },
}
SCSS
$custom: #4123a2;
$custom-light: #8262bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4123a2",
  "rgb": {
    "r": 65,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 254.173,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38786,
    "c": 0.18785,
    "h": 284.3
  },
  "luminance": 0.04935
}

Semantic roles & 50–950 ramp

primary
#4123A2
secondary
#ABC25E
accent
#E740C0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4123A2

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

Preview Lab → · Contrast checker → · Palette generator →

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