#7038B6#7038B6

#7038B6 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.189 H 299.6°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7038B6
RGBrgb(112, 56, 182)
HSLhsl(267, 53%, 47%)
HSVhsv(267, 69%, 71%)
CMYKcmyk(38.5%, 69.2%, 0%, 28.6%)
CIE-LABlab(37.21, 49.79, -57.50)
CIE-LCHlch(37.21, 76.06, 310.89°)
OKLaboklab(48.07% 0.093 -0.164)
OKLCHoklch(48.07% 0.189 299.6)
XYZxyz(16.5377, 9.6503, 45.2383)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038B6 #7EB638
analogous
#383FB6 #7038B6 #AF38B6
triadic
#7038B6 #B67038 #38B670
tetradic
#7038B6 #B6383F #7EB638 #38B6AF
square
#7038B6 #B6383F #7EB638 #38B6AF
split-complementary
#7038B6 #B6AF38 #3FB638
monochromatic
#361B58 #532A87 #7038B6 #8F5ECD #B08DDC

Accessibility & contrast

On white

7.17
#7038B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7038B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038B6
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038B6#FFFFFF#000000##FFFFFF
##7038B61.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#605673
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7038b6;
/* rgb */ color: rgb(112, 56, 182);
/* oklch */ color: oklch(48.1% 0.189 299.6);
Tailwind
colors: {
  custom: {
    50: '#9f73cd',
    500: '#7038b6',
    950: '#000000',
  },
}
SCSS
$custom: #7038b6;
$custom-light: #9f73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7038b6",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 266.667,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48065,
    "c": 0.18851,
    "h": 299.6
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#7038B6
secondary
#A9C684
accent
#DC4B9C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7038B6

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

Preview Lab → · Contrast checker → · Palette generator →

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