#7038BD#7038BD

#7038BD is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.6% C 0.196 H 297.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7038BD
RGBrgb(112, 56, 189)
HSLhsl(265, 54%, 48%)
HSVhsv(265, 70%, 74%)
CMYKcmyk(40.7%, 70.4%, 0%, 25.9%)
CIE-LABlab(37.75, 51.58, -60.75)
CIE-LCHlch(37.75, 79.69, 310.33°)
OKLaboklab(48.62% 0.0918 -0.1735)
OKLCHoklch(48.62% 0.196 297.9)
XYZxyz(17.2792, 9.9469, 49.1438)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7038BD #85BD38
analogous
#3842BD #7038BD #B238BD
triadic
#7038BD #BD7038 #38BD70
tetradic
#7038BD #BD3842 #85BD38 #38BDB2
square
#7038BD #BD3842 #85BD38 #38BDB2
split-complementary
#7038BD #BDB238 #42BD38
monochromatic
#381C5F #542A8E #7038BD #9062D0 #B291DE

Accessibility & contrast

On white

7.02
#7038BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7038BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7038BD
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7038BD#FFFFFF#000000##FFFFFF
##7038BD1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#5D5976
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7038bd;
/* rgb */ color: rgb(112, 56, 189);
/* oklch */ color: oklch(48.6% 0.196 297.9);
Tailwind
colors: {
  custom: {
    50: '#9f73d2',
    500: '#7038bd',
    950: '#000000',
  },
}
SCSS
$custom: #7038bd;
$custom-light: #9f73d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7038bd",
  "rgb": {
    "r": 112,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 265.263,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48618,
    "c": 0.19632,
    "h": 297.9
  },
  "luminance": 0.09947
}

Semantic roles & 50–950 ramp

primary
#7038BD
secondary
#AEC987
accent
#DE4AA0
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7038BD

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

Preview Lab → · Contrast checker → · Palette generator →

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