#9BA526#9BA526

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

Color values

HEX#9BA526
RGBrgb(155, 165, 38)
HSLhsl(65, 63%, 40%)
HSVhsv(65, 77%, 65%)
CMYKcmyk(6.1%, 0%, 77%, 35.3%)
CIE-LABlab(64.98, -19.05, 59.65)
CIE-LCHlch(64.98, 62.62, 107.71°)
OKLaboklab(69.16% -0.0587 0.1308)
OKLCHoklch(69.16% 0.143 114.2)
XYZxyz(27.3234, 34.0193, 6.9604)
Luminance0.3402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA526 #3026A5
analogous
#A56F26 #9BA526 #5CA526
triadic
#9BA526 #269BA5 #A5269B
tetradic
#9BA526 #26A56F #3026A5 #A5265C
square
#9BA526 #26A56F #3026A5 #A5265C
split-complementary
#9BA526 #265CA5 #6F26A5
monochromatic
#3E420F #6C731B #9BA526 #C5D137 #D3DC69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #9ba526;
/* rgb */ color: rgb(155, 165, 38);
/* oklch */ color: oklch(69.2% 0.143 114.2);
Tailwind
colors: {
  custom: {
    50: '#bcbf6b',
    500: '#9ba526',
    950: '#000000',
  },
}
SCSS
$custom: #9ba526;
$custom-light: #bcbf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba526",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 38
  },
  "hsl": {
    "h": 64.724,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.69156,
    "c": 0.14331,
    "h": 114.2
  },
  "luminance": 0.34019
}

Semantic roles & 50–950 ramp

primary
#9BA526
secondary
#6C64C3
accent
#42E64F
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA526

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

Preview Lab → · Contrast checker → · Palette generator →

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