#8C821B#8C821B

#8C821B is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.8% C 0.117 H 103.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8C821B
RGBrgb(140, 130, 27)
HSLhsl(55, 68%, 33%)
HSVhsv(55, 81%, 55%)
CMYKcmyk(0%, 7.1%, 80.7%, 45.1%)
CIE-LABlab(53.62, -7.76, 52.41)
CIE-LCHlch(53.62, 52.98, 98.42°)
OKLaboklab(59.75% -0.0274 0.1138)
OKLCHoklch(59.75% 0.117 103.5)
XYZxyz(18.9966, 21.6207, 4.2093)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C821B #1B258C
analogous
#8C491B #8C821B #5E8C1B
triadic
#8C821B #1B8C82 #821B8C
tetradic
#8C821B #1B8C49 #1B258C #8C1B5E
square
#8C821B #1B8C49 #1B258C #8C1B5E
split-complementary
#8C821B #1B5E8C #491B8C
monochromatic
#252307 #595211 #8C821B #BFB225 #DBCE46

Accessibility & contrast

On white

3.94
#8C821B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8C821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C821B
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C821B#FFFFFF#000000##000000
##8C821B1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#97786F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8c821b;
/* rgb */ color: rgb(140, 130, 27);
/* oklch */ color: oklch(59.8% 0.117 103.5);
Tailwind
colors: {
  custom: {
    50: '#b1a661',
    500: '#8c821b',
    950: '#000000',
  },
}
SCSS
$custom: #8c821b;
$custom-light: #b1a661;
$custom-dark: #000000;
JSON
{
  "hex": "#8c821b",
  "rgb": {
    "r": 140,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 54.69,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59754,
    "c": 0.11707,
    "h": 103.5
  },
  "luminance": 0.2162
}

Semantic roles & 50–950 ramp

primary
#8C821B
secondary
#4650BD
accent
#4DEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C821B

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

Preview Lab → · Contrast checker → · Palette generator →

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