#8D8A1F#8D8A1F

#8D8A1F is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.7% C 0.122 H 107.8°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8D8A1F
RGBrgb(141, 138, 31)
HSLhsl(58, 64%, 34%)
HSVhsv(58, 78%, 55%)
CMYKcmyk(0%, 2.1%, 78%, 44.7%)
CIE-LABlab(56.03, -11.48, 53.31)
CIE-LCHlch(56.03, 54.53, 102.16°)
OKLaboklab(61.7% -0.0375 0.1165)
OKLCHoklch(61.7% 0.122 107.8)
XYZxyz(20.3211, 23.9393, 4.8464)
Luminance0.2394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8A1F #1F228D
analogous
#8D531F #8D8A1F #598D1F
triadic
#8D8A1F #1F8D8A #8A1F8D
tetradic
#8D8A1F #1F8D53 #1F228D #8D1F59
square
#8D8A1F #1F8D53 #1F228D #8D1F59
split-complementary
#8D8A1F #1F598D #531F8D
monochromatic
#292809 #5B5914 #8D8A1F #BFBB2A #D8D44E

Accessibility & contrast

On white

3.63
#8D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8D8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8A1F
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8A1F#FFFFFF#000000##000000
##8D8A1F1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#968404
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#988176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8d8a1f;
/* rgb */ color: rgb(141, 138, 31);
/* oklch */ color: oklch(61.7% 0.122 107.8);
Tailwind
colors: {
  custom: {
    50: '#b2ab64',
    500: '#8d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #8d8a1f;
$custom-light: #b2ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8a1f",
  "rgb": {
    "r": 141,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 58.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61699,
    "c": 0.12237,
    "h": 107.8
  },
  "luminance": 0.23939
}

Semantic roles & 50–950 ramp

primary
#8D8A1F
secondary
#4D50BB
accent
#45E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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