#874CAF#874CAF

#874CAF is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.158 H 309.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#874CAF
RGBrgb(135, 76, 175)
HSLhsl(276, 39%, 49%)
HSVhsv(276, 57%, 69%)
CMYKcmyk(22.9%, 56.6%, 0%, 31.4%)
CIE-LABlab(43.38, 42.98, -43.28)
CIE-LCHlch(43.38, 61.00, 314.80°)
OKLaboklab(53.01% 0.1004 -0.1216)
OKLCHoklch(53.01% 0.158 309.6)
XYZxyz(20.3125, 13.4153, 42.0685)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CAF #74AF4C
analogous
#564CAF #874CAF #AF4CA6
triadic
#874CAF #AF874C #4CAF87
tetradic
#874CAF #AF564C #74AF4C #4CA6AF
square
#874CAF #AF564C #74AF4C #4CA6AF
split-complementary
#874CAF #A6AF4C #4CAF56
monochromatic
#45275A #663984 #874CAF #A475C3 #C0A0D6

Accessibility & contrast

On white

5.70
#874CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#874CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CAF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CAF#FFFFFF#000000##FFFFFF
##874CAF1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C64B2
Deuteranopia (green-blind)
#4167AD
Tritanopia (blue-blind)
#825E76
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #874caf;
/* rgb */ color: rgb(135, 76, 175);
/* oklch */ color: oklch(53.0% 0.158 309.6);
Tailwind
colors: {
  custom: {
    50: '#ad80c7',
    500: '#874caf',
    950: '#000000',
  },
}
SCSS
$custom: #874caf;
$custom-light: #ad80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#874caf",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 275.758,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53009,
    "c": 0.15769,
    "h": 309.6
  },
  "luminance": 0.13415
}

Semantic roles & 50–950 ramp

primary
#874CAF
secondary
#A7C294
accent
#CF5888
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #874CAF

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

Preview Lab → · Contrast checker → · Palette generator →

#874CAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva