#4225A2#4225A2

#4225A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.186 H 284.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4225A2
RGBrgb(66, 37, 162)
HSLhsl(254, 63%, 39%)
HSVhsv(254, 77%, 64%)
CMYKcmyk(59.3%, 77.2%, 0%, 36.5%)
CIE-LABlab(26.99, 46.16, -62.44)
CIE-LCHlch(26.99, 77.65, 306.47°)
OKLaboklab(39.12% 0.0464 -0.1799)
OKLCHoklch(39.12% 0.186 284.5)
XYZxyz(9.4279, 5.0894, 34.6610)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4225A2 #85A225
analogous
#2547A2 #4225A2 #8125A2
triadic
#4225A2 #A24225 #25A242
tetradic
#4225A2 #A22547 #85A225 #25A281
square
#4225A2 #A22547 #85A225 #25A281
split-complementary
#4225A2 #A28125 #47A225
monochromatic
#190E3E #2E1A70 #4225A2 #5834D1 #8165DC

Accessibility & contrast

On white

10.41
#4225A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4225A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4225A2
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4225A2#FFFFFF#000000##FFFFFF
##4225A21.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#084962
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4225a2;
/* rgb */ color: rgb(66, 37, 162);
/* oklch */ color: oklch(39.1% 0.186 284.5);
Tailwind
colors: {
  custom: {
    50: '#8263bf',
    500: '#4225a2',
    950: '#000000',
  },
}
SCSS
$custom: #4225a2;
$custom-light: #8263bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4225a2",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 253.92,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39119,
    "c": 0.18581,
    "h": 284.5
  },
  "luminance": 0.0509
}

Semantic roles & 50–950 ramp

primary
#4225A2
secondary
#ABC261
accent
#E642C0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4225A2

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

Preview Lab → · Contrast checker → · Palette generator →

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