#9BA51F#9BA51F

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

Color values

HEX#9BA51F
RGBrgb(155, 165, 31)
HSLhsl(64, 68%, 38%)
HSVhsv(64, 81%, 65%)
CMYKcmyk(6.1%, 0%, 81.2%, 35.3%)
CIE-LABlab(64.95, -19.32, 61.72)
CIE-LCHlch(64.95, 64.67, 107.39°)
OKLaboklab(69.12% -0.06 0.1339)
OKLCHoklch(69.12% 0.147 114.1)
XYZxyz(27.2209, 33.9783, 6.4206)
Luminance0.3398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA51F #291FA5
analogous
#A56C1F #9BA51F #58A51F
triadic
#9BA51F #1F9BA5 #A51F9B
tetradic
#9BA51F #1FA56C #291FA5 #A51F58
square
#9BA51F #1FA56C #291FA5 #A51F58
split-complementary
#9BA51F #1F58A5 #6C1FA5
monochromatic
#3A3E0C #6B7115 #9BA51F #CAD72A #D7E15E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA51F#FFFFFF#000000##000000
##9BA51F1.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)
#B29C00
Deuteranopia (green-blind)
#B19F2C
Tritanopia (blue-blind)
#A69B8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9ba51f;
/* rgb */ color: rgb(155, 165, 31);
/* oklch */ color: oklch(69.1% 0.147 114.1);
Tailwind
colors: {
  custom: {
    50: '#bcbf68',
    500: '#9ba51f',
    950: '#000000',
  },
}
SCSS
$custom: #9ba51f;
$custom-light: #bcbf68;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba51f",
  "rgb": {
    "r": 155,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 64.478,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.6912,
    "c": 0.14672,
    "h": 114.1
  },
  "luminance": 0.33978
}

Semantic roles & 50–950 ramp

primary
#9BA51F
secondary
#635BC5
accent
#3DEB4A
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA51F

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

Preview Lab → · Contrast checker → · Palette generator →

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