#4F258F#4F258F

#4F258F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.163 H 295.9°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#4F258F
RGBrgb(79, 37, 143)
HSLhsl(264, 59%, 35%)
HSVhsv(264, 74%, 56%)
CMYKcmyk(44.8%, 74.1%, 0%, 43.9%)
CIE-LABlab(26.64, 42.75, -51.30)
CIE-LCHlch(26.64, 66.78, 309.80°)
OKLaboklab(38.67% 0.0712 -0.1468)
OKLCHoklch(38.67% 0.163 295.9)
XYZxyz(8.8426, 4.9684, 26.4744)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F258F #658F25
analogous
#25308F #4F258F #84258F
triadic
#4F258F #8F4F25 #258F4F
tetradic
#4F258F #8F2530 #658F25 #258F84
square
#4F258F #8F2530 #658F25 #258F84
split-complementary
#4F258F #8F8425 #308F25
monochromatic
#190C2E #34185E #4F258F #6A32C0 #8B5AD4

Accessibility & contrast

On white

10.53
#4F258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4F258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F258F
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F258F#FFFFFF#000000##FFFFFF
##4F258F1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#3E4058
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f258f;
/* rgb */ color: rgb(79, 37, 143);
/* oklch */ color: oklch(38.7% 0.163 295.9);
Tailwind
colors: {
  custom: {
    50: '#8764b1',
    500: '#4f258f',
    950: '#000000',
  },
}
SCSS
$custom: #4f258f;
$custom-light: #8764b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f258f",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 263.774,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38669,
    "c": 0.1632,
    "h": 295.9
  },
  "luminance": 0.04969
}

Semantic roles & 50–950 ramp

primary
#4F258F
secondary
#92B957
accent
#E246A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F258F

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

Preview Lab → · Contrast checker → · Palette generator →

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