#AFB418#AFB418

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

Color values

HEX#AFB418
RGBrgb(175, 180, 24)
HSLhsl(62, 76%, 40%)
HSVhsv(62, 87%, 71%)
CMYKcmyk(2.8%, 0%, 86.7%, 29.4%)
CIE-LABlab(70.75, -18.40, 68.93)
CIE-LCHlch(70.75, 71.34, 104.95°)
OKLaboklab(74.16% -0.0588 0.1475)
OKLCHoklch(74.16% 0.159 111.7)
XYZxyz(34.1666, 41.8233, 7.1369)
Luminance0.4182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB418 #1D18B4
analogous
#B46B18 #AFB418 #61B418
triadic
#AFB418 #18AFB4 #B418AF
tetradic
#AFB418 #18B46B #1D18B4 #B41861
square
#AFB418 #18B46B #1D18B4 #B41861
split-complementary
#AFB418 #1861B4 #6B18B4
monochromatic
#46480A #7B7E11 #AFB418 #DCE227 #E5E95D

Accessibility & contrast

On white

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

On black

9.36
#AFB418 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB418
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB418#FFFFFF#000000##000000
##AFB4181.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AB00
Deuteranopia (green-blind)
#C3AF2A
Tritanopia (blue-blind)
#BCA899
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb418;
/* rgb */ color: rgb(175, 180, 24);
/* oklch */ color: oklch(74.2% 0.159 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca69',
    500: '#afb418',
    950: '#000000',
  },
}
SCSS
$custom: #afb418;
$custom-light: #cbca69;
$custom-dark: #000000;
JSON
{
  "hex": "#afb418",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 24
  },
  "hsl": {
    "h": 61.923,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.74155,
    "c": 0.15879,
    "h": 111.7
  },
  "luminance": 0.41822
}

Semantic roles & 50–950 ramp

primary
#AFB418
secondary
#5E5BCD
accent
#35F33B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB418

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

Preview Lab → · Contrast checker → · Palette generator →

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