#8C8A1B#8C8A1B

#8C8A1B is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.125 H 108.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8C8A1B
RGBrgb(140, 138, 27)
HSLhsl(59, 68%, 33%)
HSVhsv(59, 81%, 55%)
CMYKcmyk(0%, 1.4%, 80.7%, 45.1%)
CIE-LABlab(55.92, -12.10, 54.45)
CIE-LCHlch(55.92, 55.78, 102.52°)
OKLaboklab(61.59% -0.0395 0.1182)
OKLCHoklch(61.59% 0.125 108.5)
XYZxyz(20.1023, 23.8322, 4.5779)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A1B #1B1D8C
analogous
#8C511B #8C8A1B #558C1B
triadic
#8C8A1B #1B8C8A #8A1B8C
tetradic
#8C8A1B #1B8C51 #1B1D8C #8C1B55
square
#8C8A1B #1B8C51 #1B1D8C #8C1B55
split-complementary
#8C8A1B #1B558C #511B8C
monochromatic
#252507 #595711 #8C8A1B #BFBD25 #DBD946

Accessibility & contrast

On white

3.64
#8C8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8C8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A1B
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A1B#FFFFFF#000000##000000
##8C8A1B1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988825
Tritanopia (blue-blind)
#978076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a1b;
/* rgb */ color: rgb(140, 138, 27);
/* oklch */ color: oklch(61.6% 0.125 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab63',
    500: '#8c8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a1b;
$custom-light: #b1ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a1b",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 58.938,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61585,
    "c": 0.12463,
    "h": 108.5
  },
  "luminance": 0.23832
}

Semantic roles & 50–950 ramp

primary
#8C8A1B
secondary
#4648BD
accent
#40EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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