#9D7E1C#9D7E1C

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

Color values

HEX#9D7E1C
RGBrgb(157, 126, 28)
HSLhsl(46, 70%, 36%)
HSVhsv(46, 82%, 62%)
CMYKcmyk(0%, 19.7%, 82.2%, 38.4%)
CIE-LABlab(54.21, 2.37, 53.25)
CIE-LCHlch(54.21, 53.31, 87.45°)
OKLaboklab(60.62% 0.0005 0.115)
OKLCHoklch(60.62% 0.115 89.8)
XYZxyz(21.5764, 22.1751, 4.2422)
Luminance0.2217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7E1C #1C3B9D
analogous
#9D3D1C #9D7E1C #7C9D1C
triadic
#9D7E1C #1C9D7E #7E1C9D
tetradic
#9D7E1C #1C9D3D #1C3B9D #9D1C7C
square
#9D7E1C #1C9D3D #1C3B9D #9D1C7C
split-complementary
#9D7E1C #1C7C9D #3D1C9D
monochromatic
#352B09 #695413 #9D7E1C #D1A825 #E0BE53

Accessibility & contrast

On white

3.86
#9D7E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D7E1C#FFFFFF#000000##000000
##9D7E1C1.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d7e1c;
/* rgb */ color: rgb(157, 126, 28);
/* oklch */ color: oklch(60.6% 0.115 89.8);
Tailwind
colors: {
  custom: {
    50: '#bea362',
    500: '#9d7e1c',
    950: '#000000',
  },
}
SCSS
$custom: #9d7e1c;
$custom-light: #bea362;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7e1c",
  "rgb": {
    "r": 157,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 45.581,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.6062,
    "c": 0.11497,
    "h": 89.8
  },
  "luminance": 0.22174
}

Semantic roles & 50–950 ramp

primary
#9D7E1C
secondary
#516DC3
accent
#66ED3B
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A

Preview Lab

Preview with #9D7E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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