#9BA525#9BA525

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

Color values

HEX#9BA525
RGBrgb(155, 165, 37)
HSLhsl(65, 63%, 40%)
HSVhsv(65, 78%, 65%)
CMYKcmyk(6.1%, 0%, 77.6%, 35.3%)
CIE-LABlab(64.97, -19.09, 59.96)
CIE-LCHlch(64.97, 62.93, 107.66°)
OKLaboklab(69.15% -0.0589 0.1312)
OKLCHoklch(69.15% 0.144 114.2)
XYZxyz(27.3075, 34.0129, 6.8765)
Luminance0.3401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA525 #2F25A5
analogous
#A56F25 #9BA525 #5BA525
triadic
#9BA525 #259BA5 #A5259B
tetradic
#9BA525 #25A56F #2F25A5 #A5255B
square
#9BA525 #25A56F #2F25A5 #A5255B
split-complementary
#9BA525 #255BA5 #6F25A5
monochromatic
#3D410F #6C731A #9BA525 #C6D235 #D4DD67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA525#FFFFFF#000000##000000
##9BA5251.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)
#B19D00
Deuteranopia (green-blind)
#B19F31
Tritanopia (blue-blind)
#A69B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba525;
/* rgb */ color: rgb(155, 165, 37);
/* oklch */ color: oklch(69.2% 0.144 114.2);
Tailwind
colors: {
  custom: {
    50: '#bcbf6b',
    500: '#9ba525',
    950: '#000000',
  },
}
SCSS
$custom: #9ba525;
$custom-light: #bcbf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba525",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 37
  },
  "hsl": {
    "h": 64.688,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6915,
    "c": 0.14384,
    "h": 114.2
  },
  "luminance": 0.34012
}

Semantic roles & 50–950 ramp

primary
#9BA525
secondary
#6A63C3
accent
#41E64E
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA525

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

Preview Lab → · Contrast checker → · Palette generator →

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