#4F25A8#4F25A8

#4F25A8 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.192 H 289.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4F25A8
RGBrgb(79, 37, 168)
HSLhsl(259, 64%, 40%)
HSVhsv(259, 78%, 66%)
CMYKcmyk(53%, 78%, 0%, 34.1%)
CIE-LABlab(28.93, 49.63, -62.82)
CIE-LCHlch(28.93, 80.06, 308.31°)
OKLaboklab(40.98% 0.0646 -0.1806)
OKLCHoklch(40.98% 0.192 289.7)
XYZxyz(10.9518, 5.8121, 37.5830)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25A8 #7EA825
analogous
#253CA8 #4F25A8 #9125A8
triadic
#4F25A8 #A84F25 #25A84F
tetradic
#4F25A8 #A8253C #7EA825 #25A891
square
#4F25A8 #A8253C #7EA825 #25A891
split-complementary
#4F25A8 #A89125 #3CA825
monochromatic
#200F44 #371A76 #4F25A8 #6937D3 #8F69DE

Accessibility & contrast

On white

9.71
#4F25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25A8
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25A8#FFFFFF#000000##FFFFFF
##4F25A81.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#2D4A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f25a8;
/* rgb */ color: rgb(79, 37, 168);
/* oklch */ color: oklch(41.0% 0.192 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a65c3',
    500: '#4f25a8',
    950: '#000000',
  },
}
SCSS
$custom: #4f25a8;
$custom-light: #8a65c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25a8",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 259.237,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40979,
    "c": 0.19182,
    "h": 289.7
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#4F25A8
secondary
#A6C465
accent
#E741B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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