#9B9727#9B9727

#9B9727 is a light, vivid yellow. Relative luminance 0.292; OKLCH L 66.0% C 0.128 H 107.4°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9B9727
RGBrgb(155, 151, 39)
HSLhsl(58, 60%, 38%)
HSVhsv(58, 75%, 61%)
CMYKcmyk(0%, 2.6%, 74.8%, 39.2%)
CIE-LABlab(61.00, -11.75, 55.61)
CIE-LCHlch(61.00, 56.84, 101.93°)
OKLaboklab(65.98% -0.0382 0.1224)
OKLCHoklch(65.98% 0.128 107.4)
XYZxyz(24.9514, 29.2491, 6.2504)
Luminance0.2925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9727 #272B9B
analogous
#9B5D27 #9B9727 #659B27
triadic
#9B9727 #279B97 #97279B
tetradic
#9B9727 #279B5D #272B9B #9B2765
square
#9B9727 #279B5D #272B9B #9B2765
split-complementary
#9B9727 #27659B #5D279B
monochromatic
#39380E #6A671B #9B9727 #CCC733 #D8D464

Accessibility & contrast

On white

3.07
#9B9727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#9B9727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9727
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9727#FFFFFF#000000##000000
##9B97271.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49110
Deuteranopia (green-blind)
#A69530
Tritanopia (blue-blind)
#A78D82
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9b9727;
/* rgb */ color: rgb(155, 151, 39);
/* oklch */ color: oklch(66.0% 0.128 107.4);
Tailwind
colors: {
  custom: {
    50: '#bcb56a',
    500: '#9b9727',
    950: '#000000',
  },
}
SCSS
$custom: #9b9727;
$custom-light: #bcb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9727",
  "rgb": {
    "r": 155,
    "g": 151,
    "b": 39
  },
  "hsl": {
    "h": 57.931,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.65977,
    "c": 0.12821,
    "h": 107.4
  },
  "luminance": 0.29248
}

Semantic roles & 50–950 ramp

primary
#9B9727
secondary
#6063BE
accent
#4AE345
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #9B9727

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

Preview Lab → · Contrast checker → · Palette generator →

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