#AFB628#AFB628

#AFB628 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.154 H 112.5°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#AFB628
RGBrgb(175, 182, 40)
HSLhsl(63, 64%, 44%)
HSVhsv(63, 78%, 71%)
CMYKcmyk(3.8%, 0%, 78%, 28.6%)
CIE-LABlab(71.37, -18.91, 65.42)
CIE-LCHlch(71.37, 68.10, 106.13°)
OKLaboklab(74.67% -0.0592 0.1427)
OKLCHoklch(74.67% 0.154 112.5)
XYZxyz(34.7913, 42.7239, 8.4209)
Luminance0.4272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB628 #2F28B6
analogous
#B67628 #AFB628 #68B628
triadic
#AFB628 #28AFB6 #B628AF
tetradic
#AFB628 #28B676 #2F28B6 #B62868
square
#AFB628 #28B676 #2F28B6 #B62868
split-complementary
#AFB628 #2868B6 #7628B6
monochromatic
#4F5212 #7F841D #AFB628 #CFD645 #DCE177

Accessibility & contrast

On white

2.20
#AFB628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#AFB628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB628
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB628#FFFFFF#000000##000000
##AFB6281.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C5B035
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb628;
/* rgb */ color: rgb(175, 182, 40);
/* oklch */ color: oklch(74.7% 0.154 112.5);
Tailwind
colors: {
  custom: {
    50: '#cbcb6f',
    500: '#afb628',
    950: '#000000',
  },
}
SCSS
$custom: #afb628;
$custom-light: #cbcb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb628",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 62.958,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74669,
    "c": 0.15443,
    "h": 112.5
  },
  "luminance": 0.42723
}

Semantic roles & 50–950 ramp

primary
#AFB628
secondary
#7571C9
accent
#41E749
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB628

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

Preview Lab → · Contrast checker → · Palette generator →

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