#9BA522#9BA522

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

Color values

HEX#9BA522
RGBrgb(155, 165, 34)
HSLhsl(65, 66%, 39%)
HSVhsv(65, 79%, 65%)
CMYKcmyk(6.1%, 0%, 79.4%, 35.3%)
CIE-LABlab(64.96, -19.21, 60.87)
CIE-LCHlch(64.96, 63.83, 107.52°)
OKLaboklab(69.13% -0.0594 0.1326)
OKLCHoklch(69.13% 0.145 114.1)
XYZxyz(27.2623, 33.9949, 6.6386)
Luminance0.3399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA522 #2C22A5
analogous
#A56E22 #9BA522 #5AA522
triadic
#9BA522 #229BA5 #A5229B
tetradic
#9BA522 #22A56E #2C22A5 #A5225A
square
#9BA522 #22A56E #2C22A5 #A5225A
split-complementary
#9BA522 #225AA5 #6E22A5
monochromatic
#3C400D #6B7218 #9BA522 #C8D430 #D5DF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA522#FFFFFF#000000##000000
##9BA5221.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)
#B19F2E
Tritanopia (blue-blind)
#A69B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba522;
/* rgb */ color: rgb(155, 165, 34);
/* oklch */ color: oklch(69.1% 0.145 114.1);
Tailwind
colors: {
  custom: {
    50: '#bcbf6a',
    500: '#9ba522',
    950: '#000000',
  },
}
SCSS
$custom: #9ba522;
$custom-light: #bcbf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba522",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 64.58,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69134,
    "c": 0.14533,
    "h": 114.1
  },
  "luminance": 0.33994
}

Semantic roles & 50–950 ramp

primary
#9BA522
secondary
#675FC4
accent
#3FE94C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA522

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

Preview Lab → · Contrast checker → · Palette generator →

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