#9BA52F#9BA52F

#9BA52F is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.2% C 0.138 H 114.2°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#9BA52F
RGBrgb(155, 165, 47)
HSLhsl(65, 56%, 42%)
HSVhsv(65, 72%, 65%)
CMYKcmyk(6.1%, 0%, 71.5%, 35.3%)
CIE-LABlab(65.03, -18.62, 56.57)
CIE-LCHlch(65.03, 59.56, 108.22°)
OKLaboklab(69.21% -0.0567 0.1259)
OKLCHoklch(69.21% 0.138 114.2)
XYZxyz(27.4866, 34.0846, 7.8198)
Luminance0.3408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA52F #392FA5
analogous
#A5742F #9BA52F #60A52F
triadic
#9BA52F #2F9BA5 #A52F9B
tetradic
#9BA52F #2FA574 #392FA5 #A52F60
square
#9BA52F #2FA574 #392FA5 #A52F60
split-complementary
#9BA52F #2F60A5 #742FA5
monochromatic
#424614 #6E7521 #9BA52F #BFCB47 #D0D876

Accessibility & contrast

On white

2.69
#9BA52F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#9BA52F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA52F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA52F#FFFFFF#000000##000000
##9BA52F1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1A
Deuteranopia (green-blind)
#B19F38
Tritanopia (blue-blind)
#A59B8E
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba52f;
/* rgb */ color: rgb(155, 165, 47);
/* oklch */ color: oklch(69.2% 0.138 114.2);
Tailwind
colors: {
  custom: {
    50: '#bcbf70',
    500: '#9ba52f',
    950: '#000000',
  },
}
SCSS
$custom: #9ba52f;
$custom-light: #bcbf70;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba52f",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 65.085,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.69214,
    "c": 0.13802,
    "h": 114.2
  },
  "luminance": 0.34084
}

Semantic roles & 50–950 ramp

primary
#9BA52F
secondary
#7770C0
accent
#49DF56
background
#FBFBF7
surface
#F7F7ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA52F

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

Preview Lab → · Contrast checker → · Palette generator →

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