#AFB028#AFB028

#AFB028 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.148 H 110.0°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFB028
RGBrgb(175, 176, 40)
HSLhsl(60, 63%, 42%)
HSVhsv(60, 77%, 69%)
CMYKcmyk(0.6%, 0%, 77.3%, 31%)
CIE-LABlab(69.70, -15.88, 63.91)
CIE-LCHlch(69.70, 65.86, 103.95°)
OKLaboklab(73.33% -0.0508 0.1394)
OKLCHoklch(73.33% 0.148 110)
XYZxyz(33.5888, 40.3188, 8.0200)
Luminance0.4032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB028 #2928B0
analogous
#B06D28 #AFB028 #6BB028
triadic
#AFB028 #28AFB0 #B028AF
tetradic
#AFB028 #28B06D #2928B0 #B0286B
square
#AFB028 #28B06D #2928B0 #B0286B
split-complementary
#AFB028 #286BB0 #6D28B0
monochromatic
#4C4C11 #7D7E1D #AFB028 #D3D441 #DEDF73

Accessibility & contrast

On white

2.32
#AFB028 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFB028 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB028
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB028#FFFFFF#000000##000000
##AFB0281.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#C0AC34
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb028;
/* rgb */ color: rgb(175, 176, 40);
/* oklch */ color: oklch(73.3% 0.148 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76e',
    500: '#afb028',
    950: '#000000',
  },
}
SCSS
$custom: #afb028;
$custom-light: #cbc76e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb028",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 40
  },
  "hsl": {
    "h": 60.441,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.73332,
    "c": 0.14839,
    "h": 110
  },
  "luminance": 0.40318
}

Semantic roles & 50–950 ramp

primary
#AFB028
secondary
#6E6DC6
accent
#42E643
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB028

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

Preview Lab → · Contrast checker → · Palette generator →

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