#AFB928#AFB928

#AFB928 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.3% C 0.158 H 113.7°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#AFB928
RGBrgb(175, 185, 40)
HSLhsl(64, 64%, 44%)
HSVhsv(64, 78%, 73%)
CMYKcmyk(5.4%, 0%, 78.4%, 27.5%)
CIE-LABlab(72.21, -20.41, 66.17)
CIE-LCHlch(72.21, 69.25, 107.14°)
OKLaboklab(75.34% -0.0633 0.1443)
OKLCHoklch(75.34% 0.158 113.7)
XYZxyz(35.4123, 43.9658, 8.6279)
Luminance0.4396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB928 #3228B9
analogous
#B97B28 #AFB928 #67B928
triadic
#AFB928 #28AFB9 #B928AF
tetradic
#AFB928 #28B97B #3228B9 #B92867
square
#AFB928 #28B97B #3228B9 #B92867
split-complementary
#AFB928 #2867B9 #7B28B9
monochromatic
#505412 #7F871D #AFB928 #CDD747 #DBE279

Accessibility & contrast

On white

2.14
#AFB928 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#AFB928 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB928
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB928#FFFFFF#000000##000000
##AFB9281.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C7B236
Tritanopia (blue-blind)
#BBAE9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb928;
/* rgb */ color: rgb(175, 185, 40);
/* oklch */ color: oklch(75.3% 0.158 113.7);
Tailwind
colors: {
  custom: {
    50: '#cbcd6f',
    500: '#afb928',
    950: '#000000',
  },
}
SCSS
$custom: #afb928;
$custom-light: #cbcd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb928",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 40
  },
  "hsl": {
    "h": 64.138,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75341,
    "c": 0.15754,
    "h": 113.7
  },
  "luminance": 0.43965
}

Semantic roles & 50–950 ramp

primary
#AFB928
secondary
#7973CA
accent
#40E74C
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB928

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

Preview Lab → · Contrast checker → · Palette generator →

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