#9B8727#9B8727

#9B8727 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.114 H 97.0°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9B8727
RGBrgb(155, 135, 39)
HSLhsl(50, 60%, 38%)
HSVhsv(50, 75%, 61%)
CMYKcmyk(0%, 12.9%, 74.8%, 39.2%)
CIE-LABlab(56.53, -3.10, 51.35)
CIE-LCHlch(56.53, 51.44, 93.46°)
OKLaboklab(62.42% -0.0138 0.1133)
OKLCHoklch(62.42% 0.114 97)
XYZxyz(22.5489, 24.4442, 5.4496)
Luminance0.2444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8727 #273B9B
analogous
#9B4D27 #9B8727 #759B27
triadic
#9B8727 #279B87 #87279B
tetradic
#9B8727 #279B4D #273B9B #9B2775
square
#9B8727 #279B4D #273B9B #9B2775
split-complementary
#9B8727 #27759B #4D279B
monochromatic
#39320E #6A5C1B #9B8727 #CCB233 #D8C464

Accessibility & contrast

On white

3.57
#9B8727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9B8727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8727
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8727#FFFFFF#000000##000000
##9B87271.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958417
Deuteranopia (green-blind)
#9A8A2D
Tritanopia (blue-blind)
#A87C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9b8727;
/* rgb */ color: rgb(155, 135, 39);
/* oklch */ color: oklch(62.4% 0.114 97.0);
Tailwind
colors: {
  custom: {
    50: '#bca968',
    500: '#9b8727',
    950: '#000000',
  },
}
SCSS
$custom: #9b8727;
$custom-light: #bca968;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8727",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 49.655,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.62424,
    "c": 0.11417,
    "h": 97
  },
  "luminance": 0.24443
}

Semantic roles & 50–950 ramp

primary
#9B8727
secondary
#6070BE
accent
#60E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #9B8727

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

Preview Lab → · Contrast checker → · Palette generator →

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