#AFB428#AFB428

#AFB428 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.2% C 0.152 H 111.7°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#AFB428
RGBrgb(175, 180, 40)
HSLhsl(62, 64%, 43%)
HSVhsv(62, 78%, 71%)
CMYKcmyk(2.8%, 0%, 77.8%, 29.4%)
CIE-LABlab(70.81, -17.91, 64.92)
CIE-LCHlch(70.81, 67.34, 105.42°)
OKLaboklab(74.22% -0.0564 0.1416)
OKLCHoklch(74.22% 0.152 111.7)
XYZxyz(34.3847, 41.9106, 8.2853)
Luminance0.4191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB428 #2D28B4
analogous
#B47328 #AFB428 #69B428
triadic
#AFB428 #28AFB4 #B428AF
tetradic
#AFB428 #28B473 #2D28B4 #B42869
square
#AFB428 #28B473 #2D28B4 #B42869
split-complementary
#AFB428 #2869B4 #7328B4
monochromatic
#4E5012 #7E821D #AFB428 #D0D544 #DDE176

Accessibility & contrast

On white

2.24
#AFB428 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#AFB428 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB428
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB428#FFFFFF#000000##000000
##AFB4281.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC00
Deuteranopia (green-blind)
#C3AF35
Tritanopia (blue-blind)
#BBA99A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb428;
/* rgb */ color: rgb(175, 180, 40);
/* oklch */ color: oklch(74.2% 0.152 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6e',
    500: '#afb428',
    950: '#000000',
  },
}
SCSS
$custom: #afb428;
$custom-light: #cbca6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb428",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 40
  },
  "hsl": {
    "h": 62.143,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.74222,
    "c": 0.15239,
    "h": 111.7
  },
  "luminance": 0.4191
}

Semantic roles & 50–950 ramp

primary
#AFB428
secondary
#7370C8
accent
#41E747
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB428

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

Preview Lab → · Contrast checker → · Palette generator →

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