#9DB227#9DB227

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

Color values

HEX#9DB227
RGBrgb(157, 178, 39)
HSLhsl(69, 64%, 43%)
HSVhsv(69, 78%, 70%)
CMYKcmyk(11.8%, 0%, 78.1%, 30.2%)
CIE-LABlab(68.86, -24.64, 62.95)
CIE-LCHlch(68.86, 67.60, 111.37°)
OKLaboklab(72.32% -0.0741 0.1379)
OKLCHoklch(72.32% 0.157 118.3)
XYZxyz(30.1919, 39.1557, 7.8863)
Luminance0.3916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DB227 #3C27B2
analogous
#B28227 #9DB227 #57B227
triadic
#9DB227 #279DB2 #B2279D
tetradic
#9DB227 #27B282 #3C27B2 #B22757
square
#9DB227 #27B282 #3C27B2 #B22757
split-complementary
#9DB227 #2757B2 #8227B2
monochromatic
#444E11 #71801C #9DB227 #BFD541 #D0E073

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9DB227#FFFFFF#000000##000000
##9DB2271.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)
#BCA934
Tritanopia (blue-blind)
#A7A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9db227;
/* rgb */ color: rgb(157, 178, 39);
/* oklch */ color: oklch(72.3% 0.157 118.3);
Tailwind
colors: {
  custom: {
    50: '#bec96d',
    500: '#9db227',
    950: '#000000',
  },
}
SCSS
$custom: #9db227;
$custom-light: #bec96d;
$custom-dark: #000000;
JSON
{
  "hex": "#9db227",
  "rgb": {
    "r": 157,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 69.065,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72318,
    "c": 0.15652,
    "h": 118.3
  },
  "luminance": 0.39155
}

Semantic roles & 50–950 ramp

primary
#9DB227
secondary
#7B6DC8
accent
#41E75A
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #9DB227

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

Preview Lab → · Contrast checker → · Palette generator →

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