#9B8F27#9B8F27

#9B8F27 is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.2% C 0.121 H 102.5°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9B8F27
RGBrgb(155, 143, 39)
HSLhsl(54, 60%, 38%)
HSVhsv(54, 75%, 61%)
CMYKcmyk(0%, 7.7%, 74.8%, 39.2%)
CIE-LABlab(58.75, -7.47, 53.48)
CIE-LCHlch(58.75, 54.00, 97.95°)
OKLaboklab(64.19% -0.0262 0.1179)
OKLCHoklch(64.19% 0.121 102.5)
XYZxyz(23.7073, 26.7610, 5.8357)
Luminance0.2676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B8F27 #27339B
analogous
#9B5527 #9B8F27 #6D9B27
triadic
#9B8F27 #279B8F #8F279B
tetradic
#9B8F27 #279B55 #27339B #9B276D
square
#9B8F27 #279B55 #27339B #9B276D
split-complementary
#9B8F27 #276D9B #55279B
monochromatic
#39350E #6A621B #9B8F27 #CCBC33 #D8CC64

Accessibility & contrast

On white

3.31
#9B8F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#9B8F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B8F27
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B8F27#FFFFFF#000000##000000
##9B8F271.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A14
Deuteranopia (green-blind)
#A0902E
Tritanopia (blue-blind)
#A7857B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9b8f27;
/* rgb */ color: rgb(155, 143, 39);
/* oklch */ color: oklch(64.2% 0.121 102.5);
Tailwind
colors: {
  custom: {
    50: '#bcaf69',
    500: '#9b8f27',
    950: '#000000',
  },
}
SCSS
$custom: #9b8f27;
$custom-light: #bcaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9b8f27",
  "rgb": {
    "r": 155,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 53.793,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.64187,
    "c": 0.12073,
    "h": 102.5
  },
  "luminance": 0.2676
}

Semantic roles & 50–950 ramp

primary
#9B8F27
secondary
#606ABE
accent
#55E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9B8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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