#7C38CB#7C38CB

#7C38CB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.1% C 0.213 H 299.9°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7C38CB
RGBrgb(124, 56, 203)
HSLhsl(268, 59%, 51%)
HSVhsv(268, 72%, 80%)
CMYKcmyk(38.9%, 72.4%, 0%, 20.4%)
CIE-LABlab(40.29, 57.25, -64.72)
CIE-LCHlch(40.29, 86.41, 311.50°)
OKLaboklab(51.08% 0.1061 -0.1848)
OKLCHoklch(51.08% 0.213 299.9)
XYZxyz(20.5032, 11.4250, 57.6134)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38CB #87CB38
analogous
#383DCB #7C38CB #C538CB
triadic
#7C38CB #CB7C38 #38CB7C
tetradic
#7C38CB #CB383D #87CB38 #38CBC5
square
#7C38CB #CB383D #87CB38 #38CBC5
split-complementary
#7C38CB #CBC538 #3DCB38
monochromatic
#411C6C #5F299D #7C38CB #9C69D8 #BC99E4

Accessibility & contrast

On white

6.39
#7C38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7C38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38CB
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38CB#FFFFFF#000000##FFFFFF
##7C38CB1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c38cb;
/* rgb */ color: rgb(124, 56, 203);
/* oklch */ color: oklch(51.1% 0.213 299.9);
Tailwind
colors: {
  custom: {
    50: '#a875dc',
    500: '#7c38cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c38cb;
$custom-light: #a875dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38cb",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 267.755,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51083,
    "c": 0.21308,
    "h": 299.9
  },
  "luminance": 0.11425
}

Semantic roles & 50–950 ramp

primary
#7C38CB
secondary
#B2D08F
accent
#E2469A
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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