#4F25B3#4F25B3

#4F25B3 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.1% C 0.204 H 287.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4F25B3
RGBrgb(79, 37, 179)
HSLhsl(258, 66%, 42%)
HSVhsv(258, 79%, 70%)
CMYKcmyk(55.9%, 79.3%, 0%, 29.8%)
CIE-LABlab(30.01, 52.66, -67.65)
CIE-LCHlch(30.01, 85.73, 307.90°)
OKLaboklab(42.05% 0.0613 -0.1947)
OKLCHoklch(42.05% 0.204 287.5)
XYZxyz(12.0203, 6.2394, 43.2100)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25B3 #89B325
analogous
#2542B3 #4F25B3 #9625B3
triadic
#4F25B3 #B34F25 #25B34F
tetradic
#4F25B3 #B32542 #89B325 #25B396
square
#4F25B3 #B32542 #89B325 #25B396
split-complementary
#4F25B3 #B39625 #42B325
monochromatic
#22104E #391B80 #4F25B3 #6B3ED7 #9271E2

Accessibility & contrast

On white

9.34
#4F25B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4F25B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25B3
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25B3#FFFFFF#000000##FFFFFF
##4F25B31.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#224F6C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f25b3;
/* rgb */ color: rgb(79, 37, 179);
/* oklch */ color: oklch(42.1% 0.204 287.5);
Tailwind
colors: {
  custom: {
    50: '#8c65cb',
    500: '#4f25b3',
    950: '#000000',
  },
}
SCSS
$custom: #4f25b3;
$custom-light: #8c65cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25b3",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 179
  },
  "hsl": {
    "h": 257.746,
    "s": 65.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42052,
    "c": 0.20413,
    "h": 287.5
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#4F25B3
secondary
#ADC86B
accent
#E93FB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F25B3

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

Preview Lab → · Contrast checker → · Palette generator →

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