#8C821F#8C821F

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

Color values

HEX#8C821F
RGBrgb(140, 130, 31)
HSLhsl(54, 64%, 34%)
HSVhsv(54, 78%, 55%)
CMYKcmyk(0%, 7.1%, 77.9%, 45.1%)
CIE-LABlab(53.64, -7.60, 51.08)
CIE-LCHlch(53.64, 51.64, 98.46°)
OKLaboklab(59.78% -0.0265 0.1118)
OKLCHoklch(59.78% 0.115 103.3)
XYZxyz(19.0460, 21.6405, 4.4698)
Luminance0.2164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C821F #1F298C
analogous
#8C4B1F #8C821F #5F8C1F
triadic
#8C821F #1F8C82 #821F8C
tetradic
#8C821F #1F8C4B #1F298C #8C1F5F
square
#8C821F #1F8C4B #1F298C #8C1F5F
split-complementary
#8C821F #1F5F8C #4B1F8C
monochromatic
#282509 #5A5314 #8C821F #BEB12A #D8CB4E

Accessibility & contrast

On white

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

On black

5.33
#8C821F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C821F
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C821F#FFFFFF#000000##000000
##8C821F1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c821f;
/* rgb */ color: rgb(140, 130, 31);
/* oklch */ color: oklch(59.8% 0.115 103.3);
Tailwind
colors: {
  custom: {
    50: '#b1a663',
    500: '#8c821f',
    950: '#000000',
  },
}
SCSS
$custom: #8c821f;
$custom-light: #b1a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8c821f",
  "rgb": {
    "r": 140,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 54.495,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59778,
    "c": 0.1149,
    "h": 103.3
  },
  "luminance": 0.2164
}

Semantic roles & 50–950 ramp

primary
#8C821F
secondary
#4C56BB
accent
#50E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C821F

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

Preview Lab → · Contrast checker → · Palette generator →

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