#9DAF28#9DAF28

#9DAF28 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 71.6% C 0.153 H 117.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#9DAF28
RGBrgb(157, 175, 40)
HSLhsl(68, 63%, 42%)
HSVhsv(68, 77%, 69%)
CMYKcmyk(10.3%, 0%, 77.1%, 31.4%)
CIE-LABlab(68.01, -23.12, 61.85)
CIE-LCHlch(68.01, 66.03, 110.49°)
OKLaboklab(71.63% -0.0698 0.1357)
OKLCHoklch(71.63% 0.153 117.2)
XYZxyz(29.6183, 37.9816, 7.7780)
Luminance0.3798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DAF28 #3A28AF
analogous
#AF7E28 #9DAF28 #5AAF28
triadic
#9DAF28 #289DAF #AF289D
tetradic
#9DAF28 #28AF7E #3A28AF #AF285A
square
#9DAF28 #28AF7E #3A28AF #AF285A
split-complementary
#9DAF28 #285AAF #7E28AF
monochromatic
#444B11 #707D1D #9DAF28 #C0D441 #D0DF73

Accessibility & contrast

On white

2.44
#9DAF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#9DAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DAF28
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DAF28#FFFFFF#000000##000000
##9DAF281.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA501
Deuteranopia (green-blind)
#B9A635
Tritanopia (blue-blind)
#A7A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9daf28;
/* rgb */ color: rgb(157, 175, 40);
/* oklch */ color: oklch(71.6% 0.153 117.2);
Tailwind
colors: {
  custom: {
    50: '#bec66d',
    500: '#9daf28',
    950: '#000000',
  },
}
SCSS
$custom: #9daf28;
$custom-light: #bec66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9daf28",
  "rgb": {
    "r": 157,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 68,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.7163,
    "c": 0.15264,
    "h": 117.2
  },
  "luminance": 0.37981
}

Semantic roles & 50–950 ramp

primary
#9DAF28
secondary
#796DC6
accent
#42E658
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #9DAF28

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

Preview Lab → · Contrast checker → · Palette generator →

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