#7F38B3#7F38B3

#7F38B3 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.188 H 307.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F38B3
RGBrgb(127, 56, 179)
HSLhsl(275, 52%, 46%)
HSVhsv(275, 69%, 70%)
CMYKcmyk(29.1%, 68.7%, 0%, 29.8%)
CIE-LABlab(38.89, 52.13, -52.91)
CIE-LCHlch(38.89, 74.28, 314.57°)
OKLaboklab(49.61% 0.1142 -0.15)
OKLCHoklch(49.61% 0.188 307.3)
XYZxyz(18.3015, 10.5953, 43.7200)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38B3 #6CB338
analogous
#4138B3 #7F38B3 #B338A9
triadic
#7F38B3 #B37F38 #38B37F
tetradic
#7F38B3 #B34138 #6CB338 #38A9B3
square
#7F38B3 #B34138 #6CB338 #38A9B3
split-complementary
#7F38B3 #A9B338 #38B341
monochromatic
#3D1B56 #5E2984 #7F38B3 #9D5CCC #B98BDB

Accessibility & contrast

On white

6.73
#7F38B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F38B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38B3
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38B3#FFFFFF#000000##FFFFFF
##7F38B31.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#185CB0
Tritanopia (blue-blind)
#775371
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f38b3;
/* rgb */ color: rgb(127, 56, 179);
/* oklch */ color: oklch(49.6% 0.188 307.3);
Tailwind
colors: {
  custom: {
    50: '#a874ca',
    500: '#7f38b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f38b3;
$custom-light: #a874ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38b3",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 274.634,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49613,
    "c": 0.18847,
    "h": 307.3
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#7F38B3
secondary
#9EC582
accent
#DC4C89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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