#8C8B1F#8C8B1F

#8C8B1F is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.124 H 109.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8C8B1F
RGBrgb(140, 139, 31)
HSLhsl(59, 64%, 34%)
HSVhsv(59, 78%, 55%)
CMYKcmyk(0%, 0.7%, 77.9%, 45.1%)
CIE-LABlab(56.23, -12.47, 53.46)
CIE-LCHlch(56.23, 54.89, 103.13°)
OKLaboklab(61.84% -0.0402 0.1169)
OKLCHoklch(61.84% 0.124 109)
XYZxyz(20.2959, 24.1403, 4.8865)
Luminance0.2414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8B1F #1F208C
analogous
#8C541F #8C8B1F #568C1F
triadic
#8C8B1F #1F8C8B #8B1F8C
tetradic
#8C8B1F #1F8C54 #1F208C #8C1F56
square
#8C8B1F #1F8C54 #1F208C #8C1F56
split-complementary
#8C8B1F #1F568C #541F8C
monochromatic
#282809 #5A5914 #8C8B1F #BEBD2A #D8D64E

Accessibility & contrast

On white

3.60
#8C8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8C8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8B1F
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8B1F#FFFFFF#000000##000000
##8C8B1F1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#968277
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8c8b1f;
/* rgb */ color: rgb(140, 139, 31);
/* oklch */ color: oklch(61.8% 0.124 109.0);
Tailwind
colors: {
  custom: {
    50: '#b1ac64',
    500: '#8c8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #8c8b1f;
$custom-light: #b1ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8b1f",
  "rgb": {
    "r": 140,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 59.45,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61838,
    "c": 0.12358,
    "h": 109
  },
  "luminance": 0.2414
}

Semantic roles & 50–950 ramp

primary
#8C8B1F
secondary
#4C4DBB
accent
#43E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#8C8B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva