#9BA228#9BA228

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

Color values

HEX#9BA228
RGBrgb(155, 162, 40)
HSLhsl(63, 60%, 40%)
HSVhsv(63, 75%, 64%)
CMYKcmyk(4.3%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.13, -17.43, 58.20)
CIE-LCHlch(64.13, 60.76, 106.67°)
OKLaboklab(68.48% -0.054 0.1281)
OKLCHoklch(68.48% 0.139 112.9)
XYZxyz(26.8218, 32.9630, 6.9567)
Luminance0.3296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9BA228 #2F28A2
analogous
#A26C28 #9BA228 #5EA228
triadic
#9BA228 #289BA2 #A2289B
tetradic
#9BA228 #28A26C #2F28A2 #A2285E
square
#9BA228 #28A26C #2F28A2 #A2285E
split-complementary
#9BA228 #285EA2 #6C28A2
monochromatic
#3D4010 #6C711C #9BA228 #C6CE39 #D4DA6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9BA228#FFFFFF#000000##000000
##9BA2281.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)
#AE9A0C
Deuteranopia (green-blind)
#AF9D32
Tritanopia (blue-blind)
#A6988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9ba228;
/* rgb */ color: rgb(155, 162, 40);
/* oklch */ color: oklch(68.5% 0.139 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbd6c',
    500: '#9ba228',
    950: '#000000',
  },
}
SCSS
$custom: #9ba228;
$custom-light: #bcbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ba228",
  "rgb": {
    "r": 155,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 63.443,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68481,
    "c": 0.13897,
    "h": 112.9
  },
  "luminance": 0.32962
}

Semantic roles & 50–950 ramp

primary
#9BA228
secondary
#6A65C1
accent
#44E44D
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9BA228

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

Preview Lab → · Contrast checker → · Palette generator →

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