#868D1F#868D1F

#868D1F is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.8% C 0.127 H 113.3°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#868D1F
RGBrgb(134, 141, 31)
HSLhsl(64, 64%, 34%)
HSVhsv(64, 78%, 55%)
CMYKcmyk(5%, 0%, 78%, 44.7%)
CIE-LABlab(56.30, -16.24, 53.34)
CIE-LCHlch(56.30, 55.76, 106.93°)
OKLaboklab(61.78% -0.0503 0.1169)
OKLCHoklch(61.78% 0.127 113.3)
XYZxyz(19.6043, 24.2174, 4.9378)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#868D1F #261F8D
analogous
#8D5D1F #868D1F #4F8D1F
triadic
#868D1F #1F868D #8D1F86
tetradic
#868D1F #1F8D5D #261F8D #8D1F4F
square
#868D1F #1F8D5D #261F8D #8D1F4F
split-complementary
#868D1F #1F4F8D #5D1F8D
monochromatic
#272909 #565B14 #868D1F #B6BF2A #CFD84E

Accessibility & contrast

On white

3.59
#868D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#868D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #868D1F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##868D1F#FFFFFF#000000##000000
##868D1F1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#8F8478
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #868d1f;
/* rgb */ color: rgb(134, 141, 31);
/* oklch */ color: oklch(61.8% 0.127 113.3);
Tailwind
colors: {
  custom: {
    50: '#adae65',
    500: '#868d1f',
    950: '#000000',
  },
}
SCSS
$custom: #868d1f;
$custom-light: #adae65;
$custom-dark: #000000;
JSON
{
  "hex": "#868d1f",
  "rgb": {
    "r": 134,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 63.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61775,
    "c": 0.12723,
    "h": 113.3
  },
  "luminance": 0.24217
}

Semantic roles & 50–950 ramp

primary
#868D1F
secondary
#544DBB
accent
#41E74B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #868D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#868D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva