#9BA520#9BA520

#9BA520 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.1% C 0.146 H 114.1°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#9BA520
RGBrgb(155, 165, 32)
HSLhsl(65, 68%, 39%)
HSVhsv(65, 81%, 65%)
CMYKcmyk(6.1%, 0%, 80.6%, 35.3%)
CIE-LABlab(64.95, -19.29, 61.44)
CIE-LCHlch(64.95, 64.40, 107.43°)
OKLaboklab(69.12% -0.0598 0.1335)
OKLCHoklch(69.12% 0.146 114.1)
XYZxyz(27.2343, 33.9837, 6.4911)
Luminance0.3398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA520 #2A20A5
analogous
#A56C20 #9BA520 #58A520
triadic
#9BA520 #209BA5 #A5209B
tetradic
#9BA520 #20A56C #2A20A5 #A52058
square
#9BA520 #20A56C #2A20A5 #A52058
split-complementary
#9BA520 #2058A5 #6C20A5
monochromatic
#3B3E0C #6B7216 #9BA520 #C9D62C #D6E05F

Accessibility & contrast

On white

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

On black

7.80
#9BA520 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA520
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA520#FFFFFF#000000##000000
##9BA5201.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#B19F2D
Tritanopia (blue-blind)
#A69B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba520;
/* rgb */ color: rgb(155, 165, 32);
/* oklch */ color: oklch(69.1% 0.146 114.1);
Tailwind
colors: {
  custom: {
    50: '#bcbf69',
    500: '#9ba520',
    950: '#000000',
  },
}
SCSS
$custom: #9ba520;
$custom-light: #bcbf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba520",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 32
  },
  "hsl": {
    "h": 64.511,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.69124,
    "c": 0.14627,
    "h": 114.1
  },
  "luminance": 0.33983
}

Semantic roles & 50–950 ramp

primary
#9BA520
secondary
#645CC5
accent
#3DEA4A
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA520

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

Preview Lab → · Contrast checker → · Palette generator →

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