#7F38B2#7F38B2

#7F38B2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.5% C 0.187 H 307.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7F38B2
RGBrgb(127, 56, 178)
HSLhsl(275, 52%, 46%)
HSVhsv(275, 69%, 70%)
CMYKcmyk(28.7%, 68.5%, 0%, 30.2%)
CIE-LABlab(38.82, 51.90, -52.43)
CIE-LCHlch(38.82, 73.77, 314.71°)
OKLaboklab(49.54% 0.1143 -0.1485)
OKLCHoklch(49.54% 0.187 307.6)
XYZxyz(18.2008, 10.5550, 43.1893)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38B2 #6BB238
analogous
#4238B2 #7F38B2 #B238A8
triadic
#7F38B2 #B27F38 #38B27F
tetradic
#7F38B2 #B24238 #6BB238 #38A8B2
square
#7F38B2 #B24238 #6BB238 #38A8B2
split-complementary
#7F38B2 #A8B238 #38B242
monochromatic
#3D1B55 #5E2983 #7F38B2 #9D5CCC #B98ADA

Accessibility & contrast

On white

6.75
#7F38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38B2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38B2#FFFFFF#000000##FFFFFF
##7F38B21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#1A5CAF
Tritanopia (blue-blind)
#775371
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f38b2;
/* rgb */ color: rgb(127, 56, 178);
/* oklch */ color: oklch(49.5% 0.187 307.6);
Tailwind
colors: {
  custom: {
    50: '#a874ca',
    500: '#7f38b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f38b2;
$custom-light: #a874ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38b2",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 274.918,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49542,
    "c": 0.18742,
    "h": 307.6
  },
  "luminance": 0.10555
}

Semantic roles & 50–950 ramp

primary
#7F38B2
secondary
#9DC581
accent
#DC4C88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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