#4D268C#4D268C

#4D268C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.158 H 295.4°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#4D268C
RGBrgb(77, 38, 140)
HSLhsl(263, 57%, 35%)
HSVhsv(263, 73%, 55%)
CMYKcmyk(45%, 72.9%, 0%, 45.1%)
CIE-LABlab(26.32, 41.04, -49.98)
CIE-LCHlch(26.32, 64.67, 309.39°)
OKLaboklab(38.31% 0.0678 -0.143)
OKLCHoklch(38.31% 0.158 295.4)
XYZxyz(8.4860, 4.8572, 25.2963)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D268C #658C26
analogous
#26328C #4D268C #80268C
triadic
#4D268C #8C4D26 #268C4D
tetradic
#4D268C #8C2632 #658C26 #268C80
square
#4D268C #8C2632 #658C26 #268C80
split-complementary
#4D268C #8C8026 #328C26
monochromatic
#180C2C #33195C #4D268C #6733BC #885AD2

Accessibility & contrast

On white

10.65
#4D268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D268C
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D268C#FFFFFF#000000##FFFFFF
##4D268C1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#3C4056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d268c;
/* rgb */ color: rgb(77, 38, 140);
/* oklch */ color: oklch(38.3% 0.158 295.4);
Tailwind
colors: {
  custom: {
    50: '#8564ae',
    500: '#4d268c',
    950: '#000000',
  },
}
SCSS
$custom: #4d268c;
$custom-light: #8564ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d268c",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 262.941,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.15829,
    "h": 295.4
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#4D268C
secondary
#92B757
accent
#E147A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D268C

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

Preview Lab → · Contrast checker → · Palette generator →

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