#7F38CB#7F38CB

#7F38CB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.214 H 301.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7F38CB
RGBrgb(127, 56, 203)
HSLhsl(269, 59%, 51%)
HSVhsv(269, 72%, 80%)
CMYKcmyk(37.4%, 72.4%, 0%, 20.4%)
CIE-LABlab(40.66, 57.79, -64.10)
CIE-LCHlch(40.66, 86.30, 312.04°)
OKLaboklab(51.43% 0.1103 -0.1829)
OKLCHoklch(51.43% 0.214 301.1)
XYZxyz(20.9434, 11.6520, 57.6340)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38CB #84CB38
analogous
#383ACB #7F38CB #C938CB
triadic
#7F38CB #CB7F38 #38CB7F
tetradic
#7F38CB #CB383A #84CB38 #38CBC9
square
#7F38CB #CB383A #84CB38 #38CBC9
split-complementary
#7F38CB #CBC938 #3ACB38
monochromatic
#431C6C #61299D #7F38CB #9E69D8 #BD99E4

Accessibility & contrast

On white

6.31
#7F38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7F38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38CB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38CB#FFFFFF#000000##FFFFFF
##7F38CB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#6E5D7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f38cb;
/* rgb */ color: rgb(127, 56, 203);
/* oklch */ color: oklch(51.4% 0.214 301.1);
Tailwind
colors: {
  custom: {
    50: '#aa75dc',
    500: '#7f38cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f38cb;
$custom-light: #aa75dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38cb",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 268.98,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51426,
    "c": 0.21356,
    "h": 301.1
  },
  "luminance": 0.11652
}

Semantic roles & 50–950 ramp

primary
#7F38CB
secondary
#B1D08F
accent
#E24697
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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