#868E1B#868E1B

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

Color values

HEX#868E1B
RGBrgb(134, 142, 27)
HSLhsl(64, 68%, 33%)
HSVhsv(64, 81%, 56%)
CMYKcmyk(5.6%, 0%, 81%, 44.3%)
CIE-LABlab(56.58, -16.92, 54.85)
CIE-LCHlch(56.58, 57.40, 107.15°)
OKLaboklab(61.99% -0.0526 0.1193)
OKLCHoklch(61.99% 0.13 113.8)
XYZxyz(19.7030, 24.4939, 4.7266)
Luminance0.2449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#868E1B #231B8E
analogous
#8E5C1B #868E1B #4C8E1B
triadic
#868E1B #1B868E #8E1B86
tetradic
#868E1B #1B8E5C #231B8E #8E1B4C
square
#868E1B #1B8E5C #231B8E #8E1B4C
split-complementary
#868E1B #1B4C8E #5C1B8E
monochromatic
#252707 #555B11 #868E1B #B7C125 #D2DC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##868E1B#FFFFFF#000000##000000
##868E1B1.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)
#998700
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#8F8579
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #868e1b;
/* rgb */ color: rgb(134, 142, 27);
/* oklch */ color: oklch(62.0% 0.130 113.8);
Tailwind
colors: {
  custom: {
    50: '#adae63',
    500: '#868e1b',
    950: '#000000',
  },
}
SCSS
$custom: #868e1b;
$custom-light: #adae63;
$custom-dark: #000000;
JSON
{
  "hex": "#868e1b",
  "rgb": {
    "r": 134,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 64.174,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61989,
    "c": 0.13037,
    "h": 113.8
  },
  "luminance": 0.24493
}

Semantic roles & 50–950 ramp

primary
#868E1B
secondary
#4F47BE
accent
#3DEB49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #868E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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