#9B7C1E#9B7C1E

#9B7C1E is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.112 H 89.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9B7C1E
RGBrgb(155, 124, 30)
HSLhsl(45, 68%, 36%)
HSVhsv(45, 81%, 61%)
CMYKcmyk(0%, 20%, 80.6%, 39.2%)
CIE-LABlab(53.47, 2.64, 51.83)
CIE-LCHlch(53.47, 51.89, 87.08°)
OKLaboklab(59.99% 0.0016 0.1125)
OKLCHoklch(59.99% 0.112 89.2)
XYZxyz(20.9608, 21.4790, 4.2699)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7C1E #1E3D9B
analogous
#9B3E1E #9B7C1E #7C9B1E
triadic
#9B7C1E #1E9B7C #7C1E9B
tetradic
#9B7C1E #1E9B3E #1E3D9B #9B1E7C
square
#9B7C1E #1E9B3E #1E3D9B #9B1E7C
split-complementary
#9B7C1E #1E7C9B #3E1E9B
monochromatic
#342A0A #685314 #9B7C1E #CEA528 #DEBC55

Accessibility & contrast

On white

3.97
#9B7C1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#9B7C1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7C1E
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7C1E#FFFFFF#000000##000000
##9B7C1E1.003.975.305.30
#FFFFFF3.971.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B09
Deuteranopia (green-blind)
#938324
Tritanopia (blue-blind)
#A8716A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9b7c1e;
/* rgb */ color: rgb(155, 124, 30);
/* oklch */ color: oklch(60.0% 0.112 89.2);
Tailwind
colors: {
  custom: {
    50: '#bda162',
    500: '#9b7c1e',
    950: '#000000',
  },
}
SCSS
$custom: #9b7c1e;
$custom-light: #bda162;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7c1e",
  "rgb": {
    "r": 155,
    "g": 124,
    "b": 30
  },
  "hsl": {
    "h": 45.12,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59989,
    "c": 0.11246,
    "h": 89.2
  },
  "luminance": 0.21478
}

Semantic roles & 50–950 ramp

primary
#9B7C1E
secondary
#536FC2
accent
#68EA3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E06
muted
#827E7A

Preview Lab

Preview with #9B7C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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