#7038BF#7038BF

#7038BF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.199 H 297.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7038BF
RGBrgb(112, 56, 191)
HSLhsl(265, 55%, 48%)
HSVhsv(265, 71%, 75%)
CMYKcmyk(41.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(37.90, 52.09, -61.66)
CIE-LCHlch(37.90, 80.72, 310.19°)
OKLaboklab(48.78% 0.0915 -0.1762)
OKLCHoklch(48.78% 0.199 297.4)
XYZxyz(17.4978, 10.0344, 50.2950)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038BF #87BF38
analogous
#3843BF #7038BF #B338BF
triadic
#7038BF #BF7038 #38BF70
tetradic
#7038BF #BF3843 #87BF38 #38BFB3
square
#7038BF #BF3843 #87BF38 #38BFB3
split-complementary
#7038BF #BFB338 #43BF38
monochromatic
#381C60 #542A90 #7038BF #9163D1 #B292DF

Accessibility & contrast

On white

6.98
#7038BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7038BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7038BF
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038BF#FFFFFF#000000##FFFFFF
##7038BF1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#5C5978
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7038bf;
/* rgb */ color: rgb(112, 56, 191);
/* oklch */ color: oklch(48.8% 0.199 297.4);
Tailwind
colors: {
  custom: {
    50: '#a073d3',
    500: '#7038bf',
    950: '#000000',
  },
}
SCSS
$custom: #7038bf;
$custom-light: #a073d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7038bf",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 264.889,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48779,
    "c": 0.19854,
    "h": 297.4
  },
  "luminance": 0.10035
}

Semantic roles & 50–950 ramp

primary
#7038BF
secondary
#AFCA89
accent
#DE4AA1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7038BF

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

Preview Lab → · Contrast checker → · Palette generator →

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