#8A921F#8A921F

#8A921F is a light, vivid yellow. Relative luminance 0.261; OKLCH L 63.3% C 0.132 H 113.7°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A921F
RGBrgb(138, 146, 31)
HSLhsl(64, 65%, 35%)
HSVhsv(64, 79%, 57%)
CMYKcmyk(5.5%, 0%, 78.8%, 42.7%)
CIE-LABlab(58.09, -17.06, 55.10)
CIE-LCHlch(58.09, 57.68, 107.21°)
OKLaboklab(63.29% -0.0528 0.1204)
OKLCHoklch(63.29% 0.132 113.7)
XYZxyz(21.0081, 26.0604, 5.2196)
Luminance0.2606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A921F #271F92
analogous
#92611F #8A921F #51921F
triadic
#8A921F #1F8A92 #921F8A
tetradic
#8A921F #1F9261 #271F92 #921F51
square
#8A921F #1F9261 #271F92 #921F51
split-complementary
#8A921F #1F5192 #611F92
monochromatic
#2B2D0A #5A6014 #8A921F #BAC42A #D1DA51

Accessibility & contrast

On white

3.38
#8A921F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#8A921F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A921F
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A921F#FFFFFF#000000##000000
##8A921F1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#9D8D29
Tritanopia (blue-blind)
#94897D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a921f;
/* rgb */ color: rgb(138, 146, 31);
/* oklch */ color: oklch(63.3% 0.132 113.7);
Tailwind
colors: {
  custom: {
    50: '#b0b165',
    500: '#8a921f',
    950: '#000000',
  },
}
SCSS
$custom: #8a921f;
$custom-light: #b0b165;
$custom-dark: #000000;
JSON
{
  "hex": "#8a921f",
  "rgb": {
    "r": 138,
    "g": 146,
    "b": 31
  },
  "hsl": {
    "h": 64.174,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6329,
    "c": 0.1315,
    "h": 113.7
  },
  "luminance": 0.2606
}

Semantic roles & 50–950 ramp

primary
#8A921F
secondary
#5750BD
accent
#40E84C
background
#FBFAF6
surface
#F6F5EB
border
#D0CFC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A921F

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

Preview Lab → · Contrast checker → · Palette generator →

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