#7038BC#7038BC

#7038BC is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.195 H 298.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7038BC
RGBrgb(112, 56, 188)
HSLhsl(265, 54%, 48%)
HSVhsv(265, 70%, 74%)
CMYKcmyk(40.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(37.67, 51.32, -60.29)
CIE-LCHlch(37.67, 79.17, 310.41°)
OKLaboklab(48.54% 0.092 -0.1722)
OKLCHoklch(48.54% 0.195 298.1)
XYZxyz(17.1710, 9.9037, 48.5741)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038BC #84BC38
analogous
#3842BC #7038BC #B238BC
triadic
#7038BC #BC7038 #38BC70
tetradic
#7038BC #BC3842 #84BC38 #38BCB2
square
#7038BC #BC3842 #84BC38 #38BCB2
split-complementary
#7038BC #BCB238 #42BC38
monochromatic
#381C5E #542A8D #7038BC #9061D0 #B190DE

Accessibility & contrast

On white

7.05
#7038BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7038BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038BC
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038BC#FFFFFF#000000##FFFFFF
##7038BC1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#5D5876
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7038bc;
/* rgb */ color: rgb(112, 56, 188);
/* oklch */ color: oklch(48.5% 0.195 298.1);
Tailwind
colors: {
  custom: {
    50: '#9f73d1',
    500: '#7038bc',
    950: '#000000',
  },
}
SCSS
$custom: #7038bc;
$custom-light: #9f73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7038bc",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 265.455,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48538,
    "c": 0.19521,
    "h": 298.1
  },
  "luminance": 0.09904
}

Semantic roles & 50–950 ramp

primary
#7038BC
secondary
#ADC987
accent
#DD4A9F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7038BC

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

Preview Lab → · Contrast checker → · Palette generator →

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