#8C8A23#8C8A23

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

Color values

HEX#8C8A23
RGBrgb(140, 138, 35)
HSLhsl(59, 60%, 34%)
HSVhsv(59, 75%, 55%)
CMYKcmyk(0%, 1.4%, 75%, 45.1%)
CIE-LABlab(55.96, -11.76, 51.82)
CIE-LCHlch(55.96, 53.14, 102.78°)
OKLaboklab(61.63% -0.0378 0.1142)
OKLCHoklch(61.63% 0.12 108.3)
XYZxyz(20.2078, 23.8744, 5.1335)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A23 #23258C
analogous
#8C5623 #8C8A23 #5A8C23
triadic
#8C8A23 #238C8A #8A238C
tetradic
#8C8A23 #238C56 #23258C #8C235A
square
#8C8A23 #238C56 #23258C #8C235A
split-complementary
#8C8A23 #235A8C #56238C
monochromatic
#2A290B #5B5A17 #8C8A23 #BDBA2F #D4D255

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A23#FFFFFF#000000##000000
##8C8A231.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)
#96840E
Deuteranopia (green-blind)
#97882B
Tritanopia (blue-blind)
#968176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a23;
/* rgb */ color: rgb(140, 138, 35);
/* oklch */ color: oklch(61.6% 0.120 108.3);
Tailwind
colors: {
  custom: {
    50: '#b1ab66',
    500: '#8c8a23',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a23;
$custom-light: #b1ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a23",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 58.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.12025,
    "h": 108.3
  },
  "luminance": 0.23874
}

Semantic roles & 50–950 ramp

primary
#8C8A23
secondary
#5254B8
accent
#48E345
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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