#868E1F#868E1F

#868E1F is a light, vivid yellow. Relative luminance 0.245; OKLCH L 62.0% C 0.128 H 113.8°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#868E1F
RGBrgb(134, 142, 31)
HSLhsl(64, 64%, 34%)
HSVhsv(64, 78%, 56%)
CMYKcmyk(5.6%, 0%, 78.2%, 44.3%)
CIE-LABlab(56.60, -16.76, 53.61)
CIE-LCHlch(56.60, 56.17, 107.36°)
OKLaboklab(62.01% -0.0518 0.1174)
OKLCHoklch(62.01% 0.128 113.8)
XYZxyz(19.7525, 24.5137, 4.9871)
Luminance0.2451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#868E1F #271F8E
analogous
#8E5F1F #868E1F #4F8E1F
triadic
#868E1F #1F868E #8E1F86
tetradic
#868E1F #1F8E5F #271F8E #8E1F4F
square
#868E1F #1F8E5F #271F8E #8E1F4F
split-complementary
#868E1F #1F4F8E #5F1F8E
monochromatic
#272A09 #575C14 #868E1F #B5C02A #CFD94F

Accessibility & contrast

On white

3.56
#868E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#868E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #868E1F
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##868E1F#FFFFFF#000000##000000
##868E1F1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998702
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#8F8579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #868e1f;
/* rgb */ color: rgb(134, 142, 31);
/* oklch */ color: oklch(62.0% 0.128 113.8);
Tailwind
colors: {
  custom: {
    50: '#adae65',
    500: '#868e1f',
    950: '#000000',
  },
}
SCSS
$custom: #868e1f;
$custom-light: #adae65;
$custom-dark: #000000;
JSON
{
  "hex": "#868e1f",
  "rgb": {
    "r": 134,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 64.324,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.62011,
    "c": 0.12833,
    "h": 113.8
  },
  "luminance": 0.24513
}

Semantic roles & 50–950 ramp

primary
#868E1F
secondary
#554DBB
accent
#41E74D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #868E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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