#4F25B1#4F25B1

#4F25B1 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.202 H 287.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4F25B1
RGBrgb(79, 37, 177)
HSLhsl(258, 65%, 42%)
HSVhsv(258, 79%, 69%)
CMYKcmyk(55.4%, 79.1%, 0%, 30.6%)
CIE-LABlab(29.81, 52.11, -66.78)
CIE-LCHlch(29.81, 84.71, 307.97°)
OKLaboklab(41.86% 0.0619 -0.1922)
OKLCHoklch(41.86% 0.202 287.8)
XYZxyz(11.8195, 6.1591, 42.1525)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25B1 #87B125
analogous
#2541B1 #4F25B1 #9525B1
triadic
#4F25B1 #B14F25 #25B14F
tetradic
#4F25B1 #B12541 #87B125 #25B195
square
#4F25B1 #B12541 #87B125 #25B195
split-complementary
#4F25B1 #B19525 #41B125
monochromatic
#22104C #381A7E #4F25B1 #6B3DD6 #916FE1

Accessibility & contrast

On white

9.41
#4F25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25B1
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25B1#FFFFFF#000000##FFFFFF
##4F25B11.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#254E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f25b1;
/* rgb */ color: rgb(79, 37, 177);
/* oklch */ color: oklch(41.9% 0.202 287.8);
Tailwind
colors: {
  custom: {
    50: '#8c65ca',
    500: '#4f25b1',
    950: '#000000',
  },
}
SCSS
$custom: #4f25b1;
$custom-light: #8c65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25b1",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 258,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41855,
    "c": 0.20191,
    "h": 287.8
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#4F25B1
secondary
#ACC86A
accent
#E83FB6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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