#9D8B1F#9D8B1F

#9D8B1F is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.122 H 99.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9D8B1F
RGBrgb(157, 139, 31)
HSLhsl(51, 67%, 37%)
HSVhsv(51, 80%, 62%)
CMYKcmyk(0%, 11.5%, 80.3%, 38.4%)
CIE-LABlab(57.78, -4.72, 55.44)
CIE-LCHlch(57.78, 55.64, 94.87°)
OKLaboklab(63.45% -0.0193 0.1203)
OKLCHoklch(63.45% 0.122 99.1)
XYZxyz(23.3858, 25.7335, 5.0313)
Luminance0.2573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B1F #1F319D
analogous
#9D4C1F #9D8B1F #709D1F
triadic
#9D8B1F #1F9D8B #8B1F9D
tetradic
#9D8B1F #1F9D4C #1F319D #9D1F70
square
#9D8B1F #1F9D4C #1F319D #9D1F70
split-complementary
#9D8B1F #1F709D #4C1F9D
monochromatic
#37310B #6A5E15 #9D8B1F #D0B829 #DECB58

Accessibility & contrast

On white

3.42
#9D8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9D8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B1F
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B1F#FFFFFF#000000##000000
##9D8B1F1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998702
Deuteranopia (green-blind)
#9E8E27
Tritanopia (blue-blind)
#AA8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b1f;
/* rgb */ color: rgb(157, 139, 31);
/* oklch */ color: oklch(63.4% 0.122 99.1);
Tailwind
colors: {
  custom: {
    50: '#beac65',
    500: '#9d8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b1f;
$custom-light: #beac65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b1f",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 51.429,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63448,
    "c": 0.12189,
    "h": 99.1
  },
  "luminance": 0.25732
}

Semantic roles & 50–950 ramp

primary
#9D8B1F
secondary
#5665C2
accent
#56EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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