#7042CB#7042CB

#7042CB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.0% C 0.200 H 293.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7042CB
RGBrgb(112, 66, 203)
HSLhsl(260, 57%, 53%)
HSVhsv(260, 67%, 80%)
CMYKcmyk(44.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(40.66, 50.21, -64.17)
CIE-LCHlch(40.66, 81.48, 308.04°)
OKLaboklab(51.04% 0.0796 -0.1836)
OKLCHoklch(51.04% 0.2 293.4)
XYZxyz(19.4068, 11.6524, 57.7150)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7042CB #9DCB42
analogous
#4259CB #7042CB #B442CB
triadic
#7042CB #CB7042 #42CB70
tetradic
#7042CB #CB4259 #9DCB42 #42CBB4
square
#7042CB #CB4259 #9DCB42 #42CBB4
split-complementary
#7042CB #CBB442 #59CB42
monochromatic
#3C2073 #542DA3 #7042CB #9472D8 #B9A2E5

Accessibility & contrast

On white

6.31
#7042CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7042CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7042CB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7042CB#FFFFFF#000000##FFFFFF
##7042CB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#566481
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7042cb;
/* rgb */ color: rgb(112, 66, 203);
/* oklch */ color: oklch(51.0% 0.200 293.4);
Tailwind
colors: {
  custom: {
    50: '#a079dc',
    500: '#7042cb',
    950: '#000000',
  },
}
SCSS
$custom: #7042cb;
$custom-light: #a079dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7042cb",
  "rgb": {
    "r": 112,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 260.146,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51038,
    "c": 0.20014,
    "h": 293.4
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#7042CB
secondary
#BED297
accent
#E048AD
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7042CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7042CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva