#9A8D1F#9A8D1F

#9A8D1F is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.6% C 0.124 H 102.2°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9A8D1F
RGBrgb(154, 141, 31)
HSLhsl(54, 66%, 36%)
HSVhsv(54, 80%, 60%)
CMYKcmyk(0%, 8.4%, 79.9%, 39.6%)
CIE-LABlab(58.06, -7.18, 55.58)
CIE-LCHlch(58.06, 56.04, 97.36°)
OKLaboklab(63.6% -0.0261 0.1208)
OKLCHoklch(63.6% 0.124 102.2)
XYZxyz(23.0997, 26.0198, 5.1016)
Luminance0.2602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A8D1F #1F2C9A
analogous
#9A501F #9A8D1F #6A9A1F
triadic
#9A8D1F #1F9A8D #8D1F9A
tetradic
#9A8D1F #1F9A50 #1F2C9A #9A1F6A
square
#9A8D1F #1F9A50 #1F2C9A #9A1F6A
split-complementary
#9A8D1F #1F6A9A #501F9A
monochromatic
#34300A #675E15 #9A8D1F #CDBC29 #DDCF56

Accessibility & contrast

On white

3.39
#9A8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#9A8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A8D1F
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A8D1F#FFFFFF#000000##000000
##9A8D1F1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8801
Deuteranopia (green-blind)
#9F8E28
Tritanopia (blue-blind)
#A68279
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9a8d1f;
/* rgb */ color: rgb(154, 141, 31);
/* oklch */ color: oklch(63.6% 0.124 102.2);
Tailwind
colors: {
  custom: {
    50: '#bcae65',
    500: '#9a8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9a8d1f;
$custom-light: #bcae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9a8d1f",
  "rgb": {
    "r": 154,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 53.659,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63597,
    "c": 0.12357,
    "h": 102.2
  },
  "luminance": 0.26019
}

Semantic roles & 50–950 ramp

primary
#9A8D1F
secondary
#5460C1
accent
#50E93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #9A8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#9A8D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva