#7048CB#7048CB

#7048CB is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.193 H 292.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7048CB
RGBrgb(112, 72, 203)
HSLhsl(258, 56%, 54%)
HSVhsv(258, 65%, 80%)
CMYKcmyk(44.8%, 64.5%, 0%, 20.4%)
CIE-LABlab(41.83, 47.01, -62.27)
CIE-LCHlch(41.83, 78.02, 307.05°)
OKLaboklab(51.88% 0.0735 -0.178)
OKLCHoklch(51.88% 0.193 292.4)
XYZxyz(19.7760, 12.3906, 57.8380)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7048CB #A3CB48
analogous
#4862CB #7048CB #B248CB
triadic
#7048CB #CB7048 #48CB70
tetradic
#7048CB #CB4862 #A3CB48 #48CBB2
square
#7048CB #CB4862 #A3CB48 #48CBB2
split-complementary
#7048CB #CBB248 #62CB48
monochromatic
#3C2277 #542FA6 #7048CB #9578D9 #BAA7E6

Accessibility & contrast

On white

6.04
#7048CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7048CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7048CB
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7048CB#FFFFFF#000000##FFFFFF
##7048CB1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#556783
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7048cb;
/* rgb */ color: rgb(112, 72, 203);
/* oklch */ color: oklch(51.9% 0.193 292.4);
Tailwind
colors: {
  custom: {
    50: '#a07ddc',
    500: '#7048cb',
    950: '#000000',
  },
}
SCSS
$custom: #7048cb;
$custom-light: #a07ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7048cb",
  "rgb": {
    "r": 112,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 258.321,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.1926,
    "h": 292.4
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#7048CB
secondary
#C2D39B
accent
#DF49B1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #7048CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7048CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva