#9BA52C#9BA52C

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

Color values

HEX#9BA52C
RGBrgb(155, 165, 44)
HSLhsl(65, 58%, 41%)
HSVhsv(65, 73%, 65%)
CMYKcmyk(6.1%, 0%, 73.3%, 35.3%)
CIE-LABlab(65.01, -18.77, 57.65)
CIE-LCHlch(65.01, 60.63, 108.04°)
OKLaboklab(69.19% -0.0574 0.1276)
OKLCHoklch(69.19% 0.14 114.2)
XYZxyz(27.4281, 34.0612, 7.5120)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA52C #362CA5
analogous
#A5722C #9BA52C #5EA52C
triadic
#9BA52C #2C9BA5 #A52C9B
tetradic
#9BA52C #2CA572 #362CA5 #A52C5E
square
#9BA52C #2CA572 #362CA5 #A52C5E
split-complementary
#9BA52C #2C5EA5 #722CA5
monochromatic
#404412 #6E751F #9BA52C #C1CD42 #D1D972

Accessibility & contrast

On white

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

On black

7.81
#9BA52C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA52C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA52C#FFFFFF#000000##000000
##9BA52C1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ba52c;
/* rgb */ color: rgb(155, 165, 44);
/* oklch */ color: oklch(69.2% 0.140 114.2);
Tailwind
colors: {
  custom: {
    50: '#bcbf6e',
    500: '#9ba52c',
    950: '#000000',
  },
}
SCSS
$custom: #9ba52c;
$custom-light: #bcbf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba52c",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 44
  },
  "hsl": {
    "h": 64.959,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.69193,
    "c": 0.13989,
    "h": 114.2
  },
  "luminance": 0.34061
}

Semantic roles & 50–950 ramp

primary
#9BA52C
secondary
#736CC1
accent
#47E153
background
#FBFBF6
surface
#F7F7EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #9BA52C

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

Preview Lab → · Contrast checker → · Palette generator →

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