#9BAF2F#9BAF2F

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

Color values

HEX#9BAF2F
RGBrgb(155, 175, 47)
HSLhsl(69, 58%, 44%)
HSVhsv(69, 73%, 69%)
CMYKcmyk(11.4%, 0%, 73.1%, 31.4%)
CIE-LABlab(67.90, -23.63, 59.36)
CIE-LCHlch(67.90, 63.89, 111.71°)
OKLaboklab(71.52% -0.0706 0.1317)
OKLCHoklch(71.52% 0.149 118.2)
XYZxyz(29.3613, 37.8340, 8.4447)
Luminance0.3783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BAF2F #432FAF
analogous
#AF832F #9BAF2F #5BAF2F
triadic
#9BAF2F #2F9BAF #AF2F9B
tetradic
#9BAF2F #2FAF83 #432FAF #AF2F5B
square
#9BAF2F #2FAF83 #432FAF #AF2F5B
split-complementary
#9BAF2F #2F5BAF #832FAF
monochromatic
#464F15 #707F22 #9BAF2F #BBCF4C #CDDC7C

Accessibility & contrast

On white

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

On black

8.57
#9BAF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BAF2F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BAF2F#FFFFFF#000000##000000
##9BAF2F1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA516
Deuteranopia (green-blind)
#B9A63A
Tritanopia (blue-blind)
#A4A596
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #9baf2f;
/* rgb */ color: rgb(155, 175, 47);
/* oklch */ color: oklch(71.5% 0.149 118.2);
Tailwind
colors: {
  custom: {
    50: '#bcc671',
    500: '#9baf2f',
    950: '#000000',
  },
}
SCSS
$custom: #9baf2f;
$custom-light: #bcc671;
$custom-dark: #000000;
JSON
{
  "hex": "#9baf2f",
  "rgb": {
    "r": 155,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 69.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.71518,
    "c": 0.14943,
    "h": 118.2
  },
  "luminance": 0.37834
}

Semantic roles & 50–950 ramp

primary
#9BAF2F
secondary
#8275C4
accent
#47E15F
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9BAF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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