#9DB228#9DB228

#9DB228 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.3% C 0.156 H 118.3°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#9DB228
RGBrgb(157, 178, 40)
HSLhsl(69, 63%, 43%)
HSVhsv(69, 78%, 70%)
CMYKcmyk(11.8%, 0%, 77.5%, 30.2%)
CIE-LABlab(68.87, -24.59, 62.65)
CIE-LCHlch(68.87, 67.30, 111.43°)
OKLaboklab(72.32% -0.0739 0.1374)
OKLCHoklch(72.32% 0.156 118.3)
XYZxyz(30.2087, 39.1624, 7.9748)
Luminance0.3916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DB228 #3D28B2
analogous
#B28228 #9DB228 #58B228
triadic
#9DB228 #289DB2 #B2289D
tetradic
#9DB228 #28B282 #3D28B2 #B22858
square
#9DB228 #28B282 #3D28B2 #B22858
split-complementary
#9DB228 #2858B2 #8228B2
monochromatic
#454E12 #71801D #9DB228 #BED543 #D0E075

Accessibility & contrast

On white

2.38
#9DB228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#9DB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DB228
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DB228#FFFFFF#000000##000000
##9DB2281.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BCA935
Tritanopia (blue-blind)
#A7A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9db228;
/* rgb */ color: rgb(157, 178, 40);
/* oklch */ color: oklch(72.3% 0.156 118.3);
Tailwind
colors: {
  custom: {
    50: '#bec96e',
    500: '#9db228',
    950: '#000000',
  },
}
SCSS
$custom: #9db228;
$custom-light: #bec96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9db228",
  "rgb": {
    "r": 157,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 69.13,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72323,
    "c": 0.15602,
    "h": 118.3
  },
  "luminance": 0.39162
}

Semantic roles & 50–950 ramp

primary
#9DB228
secondary
#7C6FC7
accent
#41E65B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9DB228

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

Preview Lab → · Contrast checker → · Palette generator →

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