#4F25A2#4F25A2

#4F25A2 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.185 H 291.0°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4F25A2
RGBrgb(79, 37, 162)
HSLhsl(260, 63%, 39%)
HSVhsv(260, 77%, 64%)
CMYKcmyk(51.2%, 77.2%, 0%, 36.5%)
CIE-LABlab(28.36, 47.97, -60.13)
CIE-LCHlch(28.36, 76.92, 308.58°)
OKLaboklab(40.41% 0.0664 -0.1727)
OKLCHoklch(40.41% 0.185 291)
XYZxyz(10.4057, 5.5936, 34.7068)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25A2 #78A225
analogous
#253AA2 #4F25A2 #8E25A2
triadic
#4F25A2 #A24F25 #25A24F
tetradic
#4F25A2 #A2253A #78A225 #25A28E
square
#4F25A2 #A2253A #78A225 #25A28E
split-complementary
#4F25A2 #A28E25 #3AA225
monochromatic
#1E0E3E #371A70 #4F25A2 #6834D1 #8D65DC

Accessibility & contrast

On white

9.91
#4F25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25A2
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25A2#FFFFFF#000000##FFFFFF
##4F25A21.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#324862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f25a2;
/* rgb */ color: rgb(79, 37, 162);
/* oklch */ color: oklch(40.4% 0.185 291.0);
Tailwind
colors: {
  custom: {
    50: '#8965bf',
    500: '#4f25a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f25a2;
$custom-light: #8965bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25a2",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 260.16,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40407,
    "c": 0.18504,
    "h": 291
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#4F25A2
secondary
#A1C261
accent
#E642AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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