#7C38AF#7C38AF

#7C38AF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.183 H 307.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7C38AF
RGBrgb(124, 56, 175)
HSLhsl(274, 52%, 45%)
HSVhsv(274, 68%, 69%)
CMYKcmyk(29.1%, 68%, 0%, 31.4%)
CIE-LABlab(38.21, 50.56, -51.65)
CIE-LCHlch(38.21, 72.28, 314.39°)
OKLaboklab(48.96% 0.1106 -0.1464)
OKLCHoklch(48.96% 0.183 307.1)
XYZxyz(17.4626, 10.2088, 41.5997)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38AF #6BAF38
analogous
#4138AF #7C38AF #AF38A6
triadic
#7C38AF #AF7C38 #38AF7C
tetradic
#7C38AF #AF4138 #6BAF38 #38A6AF
square
#7C38AF #AF4138 #6BAF38 #38A6AF
split-complementary
#7C38AF #A6AF38 #38AF41
monochromatic
#3A1A52 #5B2981 #7C38AF #9A5ACA #B688D9

Accessibility & contrast

On white

6.90
#7C38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7C38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38AF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38AF#FFFFFF#000000##FFFFFF
##7C38AF1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#1A5AAC
Tritanopia (blue-blind)
#74526F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c38af;
/* rgb */ color: rgb(124, 56, 175);
/* oklch */ color: oklch(49.0% 0.183 307.1);
Tailwind
colors: {
  custom: {
    50: '#a674c8',
    500: '#7c38af',
    950: '#000000',
  },
}
SCSS
$custom: #7c38af;
$custom-light: #a674c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38af",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 274.286,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48956,
    "c": 0.18343,
    "h": 307.1
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#7C38AF
secondary
#9DC380
accent
#DB4D8A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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