#9B7C1F#9B7C1F

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

Color values

HEX#9B7C1F
RGBrgb(155, 124, 31)
HSLhsl(45, 67%, 36%)
HSVhsv(45, 80%, 61%)
CMYKcmyk(0%, 20%, 80%, 39.2%)
CIE-LABlab(53.48, 2.68, 51.48)
CIE-LCHlch(53.48, 51.55, 87.02°)
OKLaboklab(60% 0.0018 0.1119)
OKLCHoklch(60% 0.112 89.1)
XYZxyz(20.9738, 21.4842, 4.3382)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7C1F #1F3E9B
analogous
#9B3E1F #9B7C1F #7C9B1F
triadic
#9B7C1F #1F9B7C #7C1F9B
tetradic
#9B7C1F #1F9B3E #1F3E9B #9B1F7C
square
#9B7C1F #1F9B3E #1F3E9B #9B1F7C
split-complementary
#9B7C1F #1F7C9B #3E1F9B
monochromatic
#352A0B #685315 #9B7C1F #CEA529 #DDBC57

Accessibility & contrast

On white

3.96
#9B7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B7C1F#FFFFFF#000000##000000
##9B7C1F1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b7c1f;
/* rgb */ color: rgb(155, 124, 31);
/* oklch */ color: oklch(60.0% 0.112 89.1);
Tailwind
colors: {
  custom: {
    50: '#bda163',
    500: '#9b7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #9b7c1f;
$custom-light: #bda163;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7c1f",
  "rgb": {
    "r": 155,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 45,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59996,
    "c": 0.11192,
    "h": 89.1
  },
  "luminance": 0.21483
}

Semantic roles & 50–950 ramp

primary
#9B7C1F
secondary
#5570C1
accent
#69EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E06
muted
#827E7A

Preview Lab

Preview with #9B7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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