#9B7F2A#9B7F2A

#9B7F2A is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.107 H 90.2°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9B7F2A
RGBrgb(155, 127, 42)
HSLhsl(45, 57%, 39%)
HSVhsv(45, 73%, 61%)
CMYKcmyk(0%, 18.1%, 72.9%, 39.2%)
CIE-LABlab(54.36, 1.50, 48.00)
CIE-LCHlch(54.36, 48.02, 88.21°)
OKLaboklab(60.72% -0.0003 0.1068)
OKLCHoklch(60.72% 0.107 90.2)
XYZxyz(21.5261, 22.3158, 5.3636)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7F2A #2A469B
analogous
#9B462A #9B7F2A #7E9B2A
triadic
#9B7F2A #2A9B7F #7F2A9B
tetradic
#9B7F2A #2A9B46 #2A469B #9B2A7E
square
#9B7F2A #2A9B46 #2A469B #9B2A7E
split-complementary
#9B7F2A #2A7E9B #462A9B
monochromatic
#3B3010 #6B581D #9B7F2A #C9A639 #D6BB69

Accessibility & contrast

On white

3.84
#9B7F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#9B7F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7F2A
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7F2A#FFFFFF#000000##000000
##9B7F2A1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D1E
Deuteranopia (green-blind)
#94852E
Tritanopia (blue-blind)
#A8746E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9b7f2a;
/* rgb */ color: rgb(155, 127, 42);
/* oklch */ color: oklch(60.7% 0.107 90.2);
Tailwind
colors: {
  custom: {
    50: '#bca369',
    500: '#9b7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9b7f2a;
$custom-light: #bca369;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7f2a",
  "rgb": {
    "r": 155,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 45.133,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.10682,
    "h": 90.2
  },
  "luminance": 0.22314
}

Semantic roles & 50–950 ramp

primary
#9B7F2A
secondary
#647ABD
accent
#6DE147
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9B7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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