#A6B728#A6B728

#A6B728 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.2% C 0.158 H 116.5°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#A6B728
RGBrgb(166, 183, 40)
HSLhsl(67, 64%, 44%)
HSVhsv(67, 78%, 72%)
CMYKcmyk(9.3%, 0%, 78.1%, 28.2%)
CIE-LABlab(70.96, -23.25, 64.80)
CIE-LCHlch(70.96, 68.84, 109.74°)
OKLaboklab(74.17% -0.0707 0.1417)
OKLCHoklch(74.17% 0.158 116.5)
XYZxyz(33.0433, 42.1276, 8.3978)
Luminance0.4213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B728 #3928B7
analogous
#B78028 #A6B728 #5EB728
triadic
#A6B728 #28A6B7 #B728A6
tetradic
#A6B728 #28B780 #3928B7 #B7285E
square
#A6B728 #28B780 #3928B7 #B7285E
split-complementary
#A6B728 #285EB7 #8028B7
monochromatic
#4B5312 #78851D #A6B728 #C5D646 #D5E178

Accessibility & contrast

On white

2.23
#A6B728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#A6B728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B728
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B728#FFFFFF#000000##000000
##A6B7281.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a6b728;
/* rgb */ color: rgb(166, 183, 40);
/* oklch */ color: oklch(74.2% 0.158 116.5);
Tailwind
colors: {
  custom: {
    50: '#c4cc6f',
    500: '#a6b728',
    950: '#000000',
  },
}
SCSS
$custom: #a6b728;
$custom-light: #c4cc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b728",
  "rgb": {
    "r": 166,
    "g": 183,
    "b": 40
  },
  "hsl": {
    "h": 67.133,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.7417,
    "c": 0.15831,
    "h": 116.5
  },
  "luminance": 0.42127
}

Semantic roles & 50–950 ramp

primary
#A6B728
secondary
#7C72C9
accent
#41E754
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B728

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

Preview Lab → · Contrast checker → · Palette generator →

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