#7F37CB#7F37CB

#7F37CB is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.215 H 301.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7F37CB
RGBrgb(127, 55, 203)
HSLhsl(269, 59%, 51%)
HSVhsv(269, 73%, 80%)
CMYKcmyk(37.4%, 72.9%, 0%, 20.4%)
CIE-LABlab(40.50, 58.23, -64.35)
CIE-LCHlch(40.50, 86.79, 312.14°)
OKLaboklab(51.32% 0.1113 -0.1836)
OKLCHoklch(51.32% 0.215 301.2)
XYZxyz(20.8955, 11.5561, 57.6180)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37CB #83CB37
analogous
#3739CB #7F37CB #C937CB
triadic
#7F37CB #CB7F37 #37CB7F
tetradic
#7F37CB #CB3739 #83CB37 #37CBC9
square
#7F37CB #CB3739 #83CB37 #37CBC9
split-complementary
#7F37CB #CBC937 #39CB37
monochromatic
#431C6C #61299C #7F37CB #9E68D8 #BD98E4

Accessibility & contrast

On white

6.34
#7F37CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7F37CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37CB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37CB#FFFFFF#000000##FFFFFF
##7F37CB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#6E5C7E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f37cb;
/* rgb */ color: rgb(127, 55, 203);
/* oklch */ color: oklch(51.3% 0.215 301.2);
Tailwind
colors: {
  custom: {
    50: '#aa74dc',
    500: '#7f37cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f37cb;
$custom-light: #aa74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37cb",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 269.189,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51316,
    "c": 0.21467,
    "h": 301.2
  },
  "luminance": 0.11556
}

Semantic roles & 50–950 ramp

primary
#7F37CB
secondary
#B0D08E
accent
#E24696
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F37CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7F37CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva