#874EAF#874EAF

#874EAF is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.3% C 0.155 H 309.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#874EAF
RGBrgb(135, 78, 175)
HSLhsl(275, 38%, 50%)
HSVhsv(275, 55%, 69%)
CMYKcmyk(22.9%, 55.4%, 0%, 31.4%)
CIE-LABlab(43.79, 41.89, -42.63)
CIE-LCHlch(43.79, 59.77, 314.50°)
OKLaboklab(53.31% 0.0977 -0.1197)
OKLCHoklch(53.31% 0.155 309.2)
XYZxyz(20.4524, 13.6952, 42.1151)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EAF #76AF4E
analogous
#574EAF #874EAF #AF4EA7
triadic
#874EAF #AF874E #4EAF87
tetradic
#874EAF #AF574E #76AF4E #4EA7AF
square
#874EAF #AF574E #76AF4E #4EA7AF
split-complementary
#874EAF #A7AF4E #4EAF57
monochromatic
#46285A #663B85 #874EAF #A478C3 #C0A2D6

Accessibility & contrast

On white

5.62
#874EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#874EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EAF
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EAF#FFFFFF#000000##FFFFFF
##874EAF1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B2
Deuteranopia (green-blind)
#4368AD
Tritanopia (blue-blind)
#825F77
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #874eaf;
/* rgb */ color: rgb(135, 78, 175);
/* oklch */ color: oklch(53.3% 0.155 309.2);
Tailwind
colors: {
  custom: {
    50: '#ac82c7',
    500: '#874eaf',
    950: '#000000',
  },
}
SCSS
$custom: #874eaf;
$custom-light: #ac82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#874eaf",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 275.258,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53311,
    "c": 0.15451,
    "h": 309.2
  },
  "luminance": 0.13695
}

Semantic roles & 50–950 ramp

primary
#874EAF
secondary
#A9C396
accent
#CE5A8A
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #874EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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