#9BA528#9BA528

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

Color values

HEX#9BA528
RGBrgb(155, 165, 40)
HSLhsl(65, 61%, 40%)
HSVhsv(65, 76%, 65%)
CMYKcmyk(6.1%, 0%, 75.8%, 35.3%)
CIE-LABlab(64.99, -18.96, 59.00)
CIE-LCHlch(64.99, 61.98, 107.82°)
OKLaboklab(69.17% -0.0583 0.1298)
OKLCHoklch(69.17% 0.142 114.2)
XYZxyz(27.3565, 34.0326, 7.1349)
Luminance0.3403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA528 #3228A5
analogous
#A57028 #9BA528 #5CA528
triadic
#9BA528 #289BA5 #A5289B
tetradic
#9BA528 #28A570 #3228A5 #A5285C
square
#9BA528 #28A570 #3228A5 #A5285C
split-complementary
#9BA528 #285CA5 #7028A5
monochromatic
#3E4210 #6D741C #9BA528 #C4CF3B #D2DB6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA528#FFFFFF#000000##000000
##9BA5281.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)
#B19D0A
Deuteranopia (green-blind)
#B19F33
Tritanopia (blue-blind)
#A69B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba528;
/* rgb */ color: rgb(155, 165, 40);
/* oklch */ color: oklch(69.2% 0.142 114.2);
Tailwind
colors: {
  custom: {
    50: '#bcbf6c',
    500: '#9ba528',
    950: '#000000',
  },
}
SCSS
$custom: #9ba528;
$custom-light: #bcbf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba528",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 40
  },
  "hsl": {
    "h": 64.8,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.69168,
    "c": 0.14223,
    "h": 114.2
  },
  "luminance": 0.34032
}

Semantic roles & 50–950 ramp

primary
#9BA528
secondary
#6E67C2
accent
#44E451
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA528

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

Preview Lab → · Contrast checker → · Palette generator →

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