#A8B728#A8B728

#A8B728 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.3% C 0.158 H 115.7°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#A8B728
RGBrgb(168, 183, 40)
HSLhsl(66, 64%, 44%)
HSVhsv(66, 78%, 72%)
CMYKcmyk(8.2%, 0%, 78.1%, 28.2%)
CIE-LABlab(71.11, -22.40, 64.99)
CIE-LCHlch(71.11, 68.74, 109.02°)
OKLaboklab(74.33% -0.0684 0.142)
OKLCHoklch(74.33% 0.158 115.7)
XYZxyz(33.4659, 42.3455, 8.4176)
Luminance0.4234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B728 #3728B7
analogous
#B77E28 #A8B728 #60B728
triadic
#A8B728 #28A8B7 #B728A8
tetradic
#A8B728 #28B77E #3728B7 #B72860
square
#A8B728 #28B77E #3728B7 #B72860
split-complementary
#A8B728 #2860B7 #7E28B7
monochromatic
#4C5312 #7A851D #A8B728 #C7D646 #D6E178

Accessibility & contrast

On white

2.22
#A8B728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#A8B728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B728
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B728#FFFFFF#000000##000000
##A8B7281.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C3AF36
Tritanopia (blue-blind)
#B3AC9D
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #a8b728;
/* rgb */ color: rgb(168, 183, 40);
/* oklch */ color: oklch(74.3% 0.158 115.7);
Tailwind
colors: {
  custom: {
    50: '#c6cc6f',
    500: '#a8b728',
    950: '#000000',
  },
}
SCSS
$custom: #a8b728;
$custom-light: #c6cc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b728",
  "rgb": {
    "r": 168,
    "g": 183,
    "b": 40
  },
  "hsl": {
    "h": 66.294,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74328,
    "c": 0.15763,
    "h": 115.7
  },
  "luminance": 0.42345
}

Semantic roles & 50–950 ramp

primary
#A8B728
secondary
#7B72C9
accent
#41E752
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B728

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

Preview Lab → · Contrast checker → · Palette generator →

#A8B728 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva