#4F25B2#4F25B2

#4F25B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.203 H 287.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4F25B2
RGBrgb(79, 37, 178)
HSLhsl(258, 66%, 42%)
HSVhsv(258, 79%, 70%)
CMYKcmyk(55.6%, 79.2%, 0%, 30.2%)
CIE-LABlab(29.91, 52.39, -67.22)
CIE-LCHlch(29.91, 85.22, 307.93°)
OKLaboklab(41.95% 0.0616 -0.1935)
OKLCHoklch(41.95% 0.203 287.7)
XYZxyz(11.9195, 6.1991, 42.6793)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25B2 #88B225
analogous
#2542B2 #4F25B2 #9525B2
triadic
#4F25B2 #B24F25 #25B24F
tetradic
#4F25B2 #B22542 #88B225 #25B295
square
#4F25B2 #B22542 #88B225 #25B295
split-complementary
#4F25B2 #B29525 #42B225
monochromatic
#22104D #391A7F #4F25B2 #6B3DD7 #9270E1

Accessibility & contrast

On white

9.38
#4F25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25B2
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25B2#FFFFFF#000000##FFFFFF
##4F25B21.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#234E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f25b2;
/* rgb */ color: rgb(79, 37, 178);
/* oklch */ color: oklch(42.0% 0.203 287.7);
Tailwind
colors: {
  custom: {
    50: '#8c65ca',
    500: '#4f25b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f25b2;
$custom-light: #8c65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25b2",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 257.872,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41953,
    "c": 0.20302,
    "h": 287.7
  },
  "luminance": 0.062
}

Semantic roles & 50–950 ramp

primary
#4F25B2
secondary
#ACC86B
accent
#E93FB6
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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