#9BAF2A#9BAF2A

#9BAF2A is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.5% C 0.152 H 118.1°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#9BAF2A
RGBrgb(155, 175, 42)
HSLhsl(69, 61%, 43%)
HSVhsv(69, 76%, 69%)
CMYKcmyk(11.4%, 0%, 76%, 31.4%)
CIE-LABlab(67.87, -23.88, 61.03)
CIE-LCHlch(67.87, 65.54, 111.36°)
OKLaboklab(71.49% -0.0717 0.1344)
OKLCHoklch(71.49% 0.152 118.1)
XYZxyz(29.2661, 37.7960, 7.9436)
Luminance0.3780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAF2A #3E2AAF
analogous
#AF812A #9BAF2A #58AF2A
triadic
#9BAF2A #2A9BAF #AF2A9B
tetradic
#9BAF2A #2AAF81 #3E2AAF #AF2A58
square
#9BAF2A #2AAF81 #3E2AAF #AF2A58
split-complementary
#9BAF2A #2A58AF #812AAF
monochromatic
#444C12 #6F7E1E #9BAF2A #BDD244 #CEDE75

Accessibility & contrast

On white

2.45
#9BAF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#9BAF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAF2A
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAF2A#FFFFFF#000000##000000
##9BAF2A1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA508
Deuteranopia (green-blind)
#B9A636
Tritanopia (blue-blind)
#A5A596
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #9baf2a;
/* rgb */ color: rgb(155, 175, 42);
/* oklch */ color: oklch(71.5% 0.152 118.1);
Tailwind
colors: {
  custom: {
    50: '#bcc66e',
    500: '#9baf2a',
    950: '#000000',
  },
}
SCSS
$custom: #9baf2a;
$custom-light: #bcc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#9baf2a",
  "rgb": {
    "r": 155,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 69.023,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.71486,
    "c": 0.15231,
    "h": 118.1
  },
  "luminance": 0.37796
}

Semantic roles & 50–950 ramp

primary
#9BAF2A
secondary
#7C6FC6
accent
#43E45C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9BAF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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