#4F258B#4F258B

#4F258B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.159 H 297.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4F258B
RGBrgb(79, 37, 139)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 73%, 55%)
CMYKcmyk(43.2%, 73.4%, 0%, 45.5%)
CIE-LABlab(26.30, 41.66, -49.38)
CIE-LCHlch(26.30, 64.61, 310.15°)
OKLaboklab(38.32% 0.0721 -0.1412)
OKLCHoklch(38.32% 0.159 297)
XYZxyz(8.5450, 4.8493, 24.9069)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F258B #618B25
analogous
#252E8B #4F258B #82258B
triadic
#4F258B #8B4F25 #258B4F
tetradic
#4F258B #8B252E #618B25 #258B82
square
#4F258B #8B252E #618B25 #258B82
split-complementary
#4F258B #8B8225 #2E8B25
monochromatic
#180B2A #34185B #4F258B #6A32BB #8A58D3

Accessibility & contrast

On white

10.66
#4F258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F258B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F258B#FFFFFF#000000##FFFFFF
##4F258B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#403F55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f258b;
/* rgb */ color: rgb(79, 37, 139);
/* oklch */ color: oklch(38.3% 0.159 297.0);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4f258b',
    950: '#000000',
  },
}
SCSS
$custom: #4f258b;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f258b",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 264.706,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38319,
    "c": 0.15853,
    "h": 297
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#4F258B
secondary
#8FB755
accent
#E147A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F258B

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

Preview Lab → · Contrast checker → · Palette generator →

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