#AFB728#AFB728

#AFB728 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.155 H 112.9°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#AFB728
RGBrgb(175, 183, 40)
HSLhsl(63, 64%, 44%)
HSVhsv(63, 78%, 72%)
CMYKcmyk(4.4%, 0%, 78.1%, 28.2%)
CIE-LABlab(71.65, -19.41, 65.67)
CIE-LCHlch(71.65, 68.48, 106.47°)
OKLaboklab(74.89% -0.0606 0.1432)
OKLCHoklch(74.89% 0.155 112.9)
XYZxyz(34.9968, 43.1349, 8.4894)
Luminance0.4313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB728 #3028B7
analogous
#B77728 #AFB728 #67B728
triadic
#AFB728 #28AFB7 #B728AF
tetradic
#AFB728 #28B777 #3028B7 #B72867
square
#AFB728 #28B777 #3028B7 #B72867
split-complementary
#AFB728 #2867B7 #7728B7
monochromatic
#4F5312 #7F851D #AFB728 #CED646 #DCE178

Accessibility & contrast

On white

2.18
#AFB728 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#AFB728 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB728
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB728#FFFFFF#000000##000000
##AFB7281.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B135
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb728;
/* rgb */ color: rgb(175, 183, 40);
/* oklch */ color: oklch(74.9% 0.155 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc6f',
    500: '#afb728',
    950: '#000000',
  },
}
SCSS
$custom: #afb728;
$custom-light: #cbcc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb728",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 40
  },
  "hsl": {
    "h": 63.357,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.74892,
    "c": 0.15547,
    "h": 112.9
  },
  "luminance": 0.43134
}

Semantic roles & 50–950 ramp

primary
#AFB728
secondary
#7672C9
accent
#41E74A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB728

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

Preview Lab → · Contrast checker → · Palette generator →

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