#868B1F#868B1F

#868B1F is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.3% C 0.125 H 112.3°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#868B1F
RGBrgb(134, 139, 31)
HSLhsl(63, 64%, 33%)
HSVhsv(63, 78%, 55%)
CMYKcmyk(3.6%, 0%, 77.7%, 45.5%)
CIE-LABlab(55.72, -15.19, 52.80)
CIE-LCHlch(55.72, 54.94, 106.04°)
OKLaboklab(61.31% -0.0474 0.1157)
OKLCHoklch(61.31% 0.125 112.3)
XYZxyz(19.3121, 23.6330, 4.8404)
Luminance0.2363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#868B1F #241F8B
analogous
#8B5A1F #868B1F #508B1F
triadic
#868B1F #1F868B #8B1F86
tetradic
#868B1F #1F8B5A #241F8B #8B1F50
square
#868B1F #1F8B5A #241F8B #8B1F50
split-complementary
#868B1F #1F508B #5A1F8B
monochromatic
#262709 #565914 #868B1F #B6BD2A #D1D74D

Accessibility & contrast

On white

3.67
#868B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#868B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #868B1F
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##868B1F#FFFFFF#000000##000000
##868B1F1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968404
Deuteranopia (green-blind)
#968728
Tritanopia (blue-blind)
#908277
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #868b1f;
/* rgb */ color: rgb(134, 139, 31);
/* oklch */ color: oklch(61.3% 0.125 112.3);
Tailwind
colors: {
  custom: {
    50: '#adac64',
    500: '#868b1f',
    950: '#000000',
  },
}
SCSS
$custom: #868b1f;
$custom-light: #adac64;
$custom-dark: #000000;
JSON
{
  "hex": "#868b1f",
  "rgb": {
    "r": 134,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 62.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61306,
    "c": 0.12504,
    "h": 112.3
  },
  "luminance": 0.23632
}

Semantic roles & 50–950 ramp

primary
#868B1F
secondary
#514CBA
accent
#41E749
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #868B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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