#A2B728#A2B728

#A2B728 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 73.9% C 0.160 H 118.0°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#A2B728
RGBrgb(162, 183, 40)
HSLhsl(69, 64%, 44%)
HSVhsv(69, 78%, 72%)
CMYKcmyk(11.5%, 0%, 78.1%, 28.2%)
CIE-LABlab(70.66, -24.93, 64.42)
CIE-LCHlch(70.66, 69.08, 111.16°)
OKLaboklab(73.86% -0.0751 0.141)
OKLCHoklch(73.86% 0.16 118)
XYZxyz(32.2176, 41.7019, 8.3591)
Luminance0.4170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B728 #3D28B7
analogous
#B78428 #A2B728 #5AB728
triadic
#A2B728 #28A2B7 #B728A2
tetradic
#A2B728 #28B784 #3D28B7 #B7285A
square
#A2B728 #28B784 #3D28B7 #B7285A
split-complementary
#A2B728 #285AB7 #8428B7
monochromatic
#495312 #76851D #A2B728 #C1D646 #D2E178

Accessibility & contrast

On white

2.25
#A2B728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#A2B728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B728
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B728#FFFFFF#000000##000000
##A2B7281.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C1AE36
Tritanopia (blue-blind)
#ACAD9D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #a2b728;
/* rgb */ color: rgb(162, 183, 40);
/* oklch */ color: oklch(73.9% 0.160 118.0);
Tailwind
colors: {
  custom: {
    50: '#c1cc6f',
    500: '#a2b728',
    950: '#000000',
  },
}
SCSS
$custom: #a2b728;
$custom-light: #c1cc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b728",
  "rgb": {
    "r": 162,
    "g": 183,
    "b": 40
  },
  "hsl": {
    "h": 68.811,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.7386,
    "c": 0.15975,
    "h": 118
  },
  "luminance": 0.41702
}

Semantic roles & 50–950 ramp

primary
#A2B728
secondary
#7E72C9
accent
#41E759
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2B728

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

Preview Lab → · Contrast checker → · Palette generator →

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