#7038B8#7038B8

#7038B8 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.2% C 0.191 H 299.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7038B8
RGBrgb(112, 56, 184)
HSLhsl(266, 53%, 47%)
HSVhsv(266, 70%, 72%)
CMYKcmyk(39.1%, 69.6%, 0%, 27.8%)
CIE-LABlab(37.36, 50.30, -58.43)
CIE-LCHlch(37.36, 77.10, 310.72°)
OKLaboklab(48.22% 0.0927 -0.1667)
OKLCHoklch(48.22% 0.191 299.1)
XYZxyz(16.7458, 9.7336, 46.3346)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038B8 #80B838
analogous
#3840B8 #7038B8 #B038B8
triadic
#7038B8 #B87038 #38B870
tetradic
#7038B8 #B83840 #80B838 #38B8B0
square
#7038B8 #B83840 #80B838 #38B8B0
split-complementary
#7038B8 #B8B038 #40B838
monochromatic
#371B5A #532A89 #7038B8 #905FCE #B08EDD

Accessibility & contrast

On white

7.13
#7038B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7038B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038B8
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038B8#FFFFFF#000000##FFFFFF
##7038B81.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#5F5774
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7038b8;
/* rgb */ color: rgb(112, 56, 184);
/* oklch */ color: oklch(48.2% 0.191 299.1);
Tailwind
colors: {
  custom: {
    50: '#9f73ce',
    500: '#7038b8',
    950: '#000000',
  },
}
SCSS
$custom: #7038b8;
$custom-light: #9f73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7038b8",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 266.25,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48221,
    "c": 0.19075,
    "h": 299.1
  },
  "luminance": 0.09734
}

Semantic roles & 50–950 ramp

primary
#7038B8
secondary
#AAC785
accent
#DD4B9D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7038B8

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

Preview Lab → · Contrast checker → · Palette generator →

#7038B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva