#9BA823#9BA823

#9BA823 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 69.8% C 0.148 H 115.4°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#9BA823
RGBrgb(155, 168, 35)
HSLhsl(66, 66%, 40%)
HSVhsv(66, 79%, 66%)
CMYKcmyk(7.7%, 0%, 79.2%, 34.1%)
CIE-LABlab(65.82, -20.69, 61.34)
CIE-LCHlch(65.82, 64.74, 108.64°)
OKLaboklab(69.83% -0.0634 0.1338)
OKLCHoklch(69.83% 0.148 115.4)
XYZxyz(27.8244, 35.0957, 6.8982)
Luminance0.3509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA823 #3023A8
analogous
#A87323 #9BA823 #58A823
triadic
#9BA823 #239BA8 #A8239B
tetradic
#9BA823 #23A873 #3023A8 #A82358
square
#9BA823 #23A873 #3023A8 #A82358
split-complementary
#9BA823 #2358A8 #7323A8
monochromatic
#3E430E #6C7518 #9BA823 #C5D534 #D3DF66

Accessibility & contrast

On white

2.62
#9BA823 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#9BA823 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA823
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA823#FFFFFF#000000##000000
##9BA8231.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B3A130
Tritanopia (blue-blind)
#A59E90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9ba823;
/* rgb */ color: rgb(155, 168, 35);
/* oklch */ color: oklch(69.8% 0.148 115.4);
Tailwind
colors: {
  custom: {
    50: '#bcc16a',
    500: '#9ba823',
    950: '#000000',
  },
}
SCSS
$custom: #9ba823;
$custom-light: #bcc16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba823",
  "rgb": {
    "r": 155,
    "g": 168,
    "b": 35
  },
  "hsl": {
    "h": 65.865,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.6983,
    "c": 0.1481,
    "h": 115.4
  },
  "luminance": 0.35095
}

Semantic roles & 50–950 ramp

primary
#9BA823
secondary
#6C62C5
accent
#3FE850
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA823

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

Preview Lab → · Contrast checker → · Palette generator →

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