#8C8A1C#8C8A1C

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

Color values

HEX#8C8A1C
RGBrgb(140, 138, 28)
HSLhsl(59, 67%, 33%)
HSVhsv(59, 80%, 55%)
CMYKcmyk(0%, 1.4%, 80%, 45.1%)
CIE-LABlab(55.92, -12.06, 54.15)
CIE-LCHlch(55.92, 55.48, 102.55°)
OKLaboklab(61.59% -0.0393 0.1178)
OKLCHoklch(61.59% 0.124 108.5)
XYZxyz(20.1141, 23.8369, 4.6398)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A1C #1C1E8C
analogous
#8C521C #8C8A1C #568C1C
triadic
#8C8A1C #1C8C8A #8A1C8C
tetradic
#8C8A1C #1C8C52 #1C1E8C #8C1C56
square
#8C8A1C #1C8C52 #1C1E8C #8C1C56
split-complementary
#8C8A1C #1C568C #521C8C
monochromatic
#262508 #595812 #8C8A1C #BFBC26 #DAD848

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A1C#FFFFFF#000000##000000
##8C8A1C1.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)
#988826
Tritanopia (blue-blind)
#978176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a1c;
/* rgb */ color: rgb(140, 138, 28);
/* oklch */ color: oklch(61.6% 0.124 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab63',
    500: '#8c8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a1c;
$custom-light: #b1ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a1c",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 58.929,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.6159,
    "c": 0.12413,
    "h": 108.5
  },
  "luminance": 0.23836
}

Semantic roles & 50–950 ramp

primary
#8C8A1C
secondary
#484ABC
accent
#41EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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