#4F25A4#4F25A4

#4F25A4 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.187 H 290.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4F25A4
RGBrgb(79, 37, 164)
HSLhsl(260, 63%, 39%)
HSVhsv(260, 77%, 64%)
CMYKcmyk(51.8%, 77.4%, 0%, 35.7%)
CIE-LABlab(28.55, 48.52, -61.03)
CIE-LCHlch(28.55, 77.97, 308.49°)
OKLaboklab(40.6% 0.0658 -0.1754)
OKLCHoklch(40.6% 0.187 290.6)
XYZxyz(10.5849, 5.6653, 35.6505)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25A4 #7AA425
analogous
#253AA4 #4F25A4 #8F25A4
triadic
#4F25A4 #A44F25 #25A44F
tetradic
#4F25A4 #A4253A #7AA425 #25A48F
square
#4F25A4 #A4253A #7AA425 #25A48F
split-complementary
#4F25A4 #A48F25 #3AA425
monochromatic
#1F0E40 #371A72 #4F25A4 #6935D1 #8E67DD

Accessibility & contrast

On white

9.84
#4F25A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F25A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25A4
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25A4#FFFFFF#000000##FFFFFF
##4F25A41.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#314963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f25a4;
/* rgb */ color: rgb(79, 37, 164);
/* oklch */ color: oklch(40.6% 0.187 290.6);
Tailwind
colors: {
  custom: {
    50: '#8a65c0',
    500: '#4f25a4',
    950: '#000000',
  },
}
SCSS
$custom: #4f25a4;
$custom-light: #8a65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25a4",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 259.843,
    "s": 63.184,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40596,
    "c": 0.18731,
    "h": 290.6
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#4F25A4
secondary
#A3C262
accent
#E642B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4F25A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4F25A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva