#9BA229#9BA229

#9BA229 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.5% C 0.138 H 112.9°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#9BA229
RGBrgb(155, 162, 41)
HSLhsl(63, 60%, 40%)
HSVhsv(63, 75%, 64%)
CMYKcmyk(4.3%, 0%, 74.7%, 36.5%)
CIE-LABlab(64.14, -17.39, 57.87)
CIE-LCHlch(64.14, 60.42, 106.72°)
OKLaboklab(68.49% -0.0538 0.1275)
OKLCHoklch(68.49% 0.138 112.9)
XYZxyz(26.8390, 32.9699, 7.0474)
Luminance0.3297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA229 #3029A2
analogous
#A26D29 #9BA229 #5FA229
triadic
#9BA229 #299BA2 #A2299B
tetradic
#9BA229 #29A26D #3029A2 #A2295F
square
#9BA229 #29A26D #3029A2 #A2295F
split-complementary
#9BA229 #295FA2 #6D29A2
monochromatic
#3E4010 #6C711D #9BA229 #C5CD3B #D3DA6C

Accessibility & contrast

On white

2.77
#9BA229 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#9BA229 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9BA229
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9BA229#FFFFFF#000000##000000
##9BA2291.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0F
Deuteranopia (green-blind)
#AF9D33
Tritanopia (blue-blind)
#A6988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba229;
/* rgb */ color: rgb(155, 162, 41);
/* oklch */ color: oklch(68.5% 0.138 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd6c',
    500: '#9ba229',
    950: '#000000',
  },
}
SCSS
$custom: #9ba229;
$custom-light: #bcbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba229",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 41
  },
  "hsl": {
    "h": 63.471,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.68487,
    "c": 0.1384,
    "h": 112.9
  },
  "luminance": 0.32969
}

Semantic roles & 50–950 ramp

primary
#9BA229
secondary
#6C67C0
accent
#45E34E
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA229

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

Preview Lab → · Contrast checker → · Palette generator →

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