#7038BA#7038BA

#7038BA is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.4% C 0.193 H 298.6°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7038BA
RGBrgb(112, 56, 186)
HSLhsl(266, 54%, 47%)
HSVhsv(266, 70%, 73%)
CMYKcmyk(39.8%, 69.9%, 0%, 27.1%)
CIE-LABlab(37.51, 50.81, -59.36)
CIE-LCHlch(37.51, 78.14, 310.56°)
OKLaboklab(48.38% 0.0924 -0.1694)
OKLCHoklch(48.38% 0.193 298.6)
XYZxyz(16.9569, 9.8180, 47.4465)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038BA #82BA38
analogous
#3841BA #7038BA #B138BA
triadic
#7038BA #BA7038 #38BA70
tetradic
#7038BA #BA3841 #82BA38 #38BAB1
square
#7038BA #BA3841 #82BA38 #38BAB1
split-complementary
#7038BA #BAB138 #41BA38
monochromatic
#371C5C #542A8B #7038BA #9060CF #B18FDD

Accessibility & contrast

On white

7.09
#7038BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7038BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038BA
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038BA#FFFFFF#000000##FFFFFF
##7038BA1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#5E5875
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7038ba;
/* rgb */ color: rgb(112, 56, 186);
/* oklch */ color: oklch(48.4% 0.193 298.6);
Tailwind
colors: {
  custom: {
    50: '#9f73d0',
    500: '#7038ba',
    950: '#000000',
  },
}
SCSS
$custom: #7038ba;
$custom-light: #9f73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7038ba",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 265.846,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48379,
    "c": 0.19298,
    "h": 298.6
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#7038BA
secondary
#ABC886
accent
#DD4B9E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7038BA

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

Preview Lab → · Contrast checker → · Palette generator →

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