#9D7E1A#9D7E1A

#9D7E1A is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.116 H 89.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9D7E1A
RGBrgb(157, 126, 26)
HSLhsl(46, 72%, 36%)
HSVhsv(46, 83%, 62%)
CMYKcmyk(0%, 19.7%, 83.4%, 38.4%)
CIE-LABlab(54.20, 2.31, 53.89)
CIE-LCHlch(54.20, 53.94, 87.55°)
OKLaboklab(60.61% 0.0001 0.1159)
OKLCHoklch(60.61% 0.116 89.9)
XYZxyz(21.5533, 22.1658, 4.1203)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7E1A #1A399D
analogous
#9D3D1A #9D7E1A #7A9D1A
triadic
#9D7E1A #1A9D7E #7E1A9D
tetradic
#9D7E1A #1A9D3D #1A399D #9D1A7A
square
#9D7E1A #1A9D3D #1A399D #9D1A7A
split-complementary
#9D7E1A #1A7A9D #3D1A9D
monochromatic
#342A09 #685411 #9D7E1A #D2A823 #E2BF4F

Accessibility & contrast

On white

3.87
#9D7E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#9D7E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7E1A
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7E1A#FFFFFF#000000##000000
##9D7E1A1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#958521
Tritanopia (blue-blind)
#AB726C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7e1a;
/* rgb */ color: rgb(157, 126, 26);
/* oklch */ color: oklch(60.6% 0.116 89.9);
Tailwind
colors: {
  custom: {
    50: '#bea361',
    500: '#9d7e1a',
    950: '#000000',
  },
}
SCSS
$custom: #9d7e1a;
$custom-light: #bea361;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7e1a",
  "rgb": {
    "r": 157,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 45.802,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60609,
    "c": 0.11591,
    "h": 89.9
  },
  "luminance": 0.22164
}

Semantic roles & 50–950 ramp

primary
#9D7E1A
secondary
#4E6AC4
accent
#64EE39
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9D7E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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