#9B7F1E#9B7F1E

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

Color values

HEX#9B7F1E
RGBrgb(155, 127, 30)
HSLhsl(47, 68%, 36%)
HSVhsv(47, 81%, 61%)
CMYKcmyk(0%, 18.1%, 80.6%, 39.2%)
CIE-LABlab(54.28, 0.96, 52.56)
CIE-LCHlch(54.28, 52.57, 88.95°)
OKLaboklab(60.63% -0.0032 0.114)
OKLCHoklch(60.63% 0.114 91.6)
XYZxyz(21.3425, 22.2424, 4.3971)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7F1E #1E3A9B
analogous
#9B411E #9B7F1E #799B1E
triadic
#9B7F1E #1E9B7F #7F1E9B
tetradic
#9B7F1E #1E9B41 #1E3A9B #9B1E79
square
#9B7F1E #1E9B41 #1E3A9B #9B1E79
split-complementary
#9B7F1E #1E799B #411E9B
monochromatic
#342B0A #685514 #9B7F1E #CEA928 #DEBF55

Accessibility & contrast

On white

3.85
#9B7F1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9B7F1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7F1E
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7F1E#FFFFFF#000000##000000
##9B7F1E1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D07
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#A8746D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9b7f1e;
/* rgb */ color: rgb(155, 127, 30);
/* oklch */ color: oklch(60.6% 0.114 91.6);
Tailwind
colors: {
  custom: {
    50: '#bda363',
    500: '#9b7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #9b7f1e;
$custom-light: #bda363;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7f1e",
  "rgb": {
    "r": 155,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 46.56,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60631,
    "c": 0.11408,
    "h": 91.6
  },
  "luminance": 0.22241
}

Semantic roles & 50–950 ramp

primary
#9B7F1E
secondary
#536CC2
accent
#64EA3D
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9B7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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