#9BAF2C#9BAF2C

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

Color values

HEX#9BAF2C
RGBrgb(155, 175, 44)
HSLhsl(69, 60%, 43%)
HSVhsv(69, 75%, 69%)
CMYKcmyk(11.4%, 0%, 74.9%, 31.4%)
CIE-LABlab(67.88, -23.78, 60.38)
CIE-LCHlch(67.88, 64.89, 111.50°)
OKLaboklab(71.5% -0.0712 0.1334)
OKLCHoklch(71.5% 0.151 118.1)
XYZxyz(29.3028, 37.8106, 8.1369)
Luminance0.3781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAF2C #402CAF
analogous
#AF812C #9BAF2C #5AAF2C
triadic
#9BAF2C #2C9BAF #AF2C9B
tetradic
#9BAF2C #2CAF81 #402CAF #AF2C5A
square
#9BAF2C #2CAF81 #402CAF #AF2C5A
split-complementary
#9BAF2C #2C5AAF #812CAF
monochromatic
#444D13 #707E20 #9BAF2C #BCD147 #CEDD78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BAF2C#FFFFFF#000000##000000
##9BAF2C1.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)
#BBA50F
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#A5A596
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #9baf2c;
/* rgb */ color: rgb(155, 175, 44);
/* oklch */ color: oklch(71.5% 0.151 118.1);
Tailwind
colors: {
  custom: {
    50: '#bcc66f',
    500: '#9baf2c',
    950: '#000000',
  },
}
SCSS
$custom: #9baf2c;
$custom-light: #bcc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#9baf2c",
  "rgb": {
    "r": 155,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 69.16,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71498,
    "c": 0.1512,
    "h": 118.1
  },
  "luminance": 0.3781
}

Semantic roles & 50–950 ramp

primary
#9BAF2C
secondary
#7E72C5
accent
#45E35D
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9BAF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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