#9A7F1D#9A7F1D

#9A7F1D is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.114 H 92.4°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9A7F1D
RGBrgb(154, 127, 29)
HSLhsl(47, 68%, 36%)
HSVhsv(47, 81%, 60%)
CMYKcmyk(0%, 17.5%, 81.2%, 39.6%)
CIE-LABlab(54.17, 0.46, 52.77)
CIE-LCHlch(54.17, 52.77, 89.50°)
OKLaboklab(60.52% -0.0047 0.1143)
OKLCHoklch(60.52% 0.114 92.4)
XYZxyz(21.1388, 22.1388, 4.3220)
Luminance0.2214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7F1D #1D389A
analogous
#9A401D #9A7F1D #769A1D
triadic
#9A7F1D #1D9A7F #7F1D9A
tetradic
#9A7F1D #1D9A40 #1D389A #9A1D76
square
#9A7F1D #1D9A40 #1D389A #9A1D76
split-complementary
#9A7F1D #1D769A #401D9A
monochromatic
#332A0A #665513 #9A7F1D #CEA927 #DFC053

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A7F1D#FFFFFF#000000##000000
##9A7F1D1.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)
#8E7D05
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#A7746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9a7f1d;
/* rgb */ color: rgb(154, 127, 29);
/* oklch */ color: oklch(60.5% 0.114 92.4);
Tailwind
colors: {
  custom: {
    50: '#bca362',
    500: '#9a7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #9a7f1d;
$custom-light: #bca362;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7f1d",
  "rgb": {
    "r": 154,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 47.04,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60519,
    "c": 0.1144,
    "h": 92.4
  },
  "luminance": 0.22137
}

Semantic roles & 50–950 ramp

primary
#9A7F1D
secondary
#5169C2
accent
#62EB3D
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9A7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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