#AFB41E#AFB41E

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

Color values

HEX#AFB41E
RGBrgb(175, 180, 30)
HSLhsl(62, 71%, 41%)
HSVhsv(62, 83%, 71%)
CMYKcmyk(2.8%, 0%, 83.3%, 29.4%)
CIE-LABlab(70.77, -18.25, 67.61)
CIE-LCHlch(70.77, 70.02, 105.10°)
OKLaboklab(74.18% -0.058 0.1456)
OKLCHoklch(74.18% 0.157 111.7)
XYZxyz(34.2360, 41.8511, 7.5027)
Luminance0.4185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB41E #231EB4
analogous
#B46E1E #AFB41E #64B41E
triadic
#AFB41E #1EAFB4 #B41EAF
tetradic
#AFB41E #1EB46E #231EB4 #B41E64
square
#AFB41E #1EB46E #231EB4 #B41E64
split-complementary
#AFB41E #1E64B4 #6E1EB4
monochromatic
#494B0D #7C8015 #AFB41E #D7DD32 #E1E667

Accessibility & contrast

On white

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

On black

9.37
#AFB41E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB41E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB41E#FFFFFF#000000##000000
##AFB41E1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb41e;
/* rgb */ color: rgb(175, 180, 30);
/* oklch */ color: oklch(74.2% 0.157 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6b',
    500: '#afb41e',
    950: '#000000',
  },
}
SCSS
$custom: #afb41e;
$custom-light: #cbca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb41e",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 30
  },
  "hsl": {
    "h": 62,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.74176,
    "c": 0.15673,
    "h": 111.7
  },
  "luminance": 0.4185
}

Semantic roles & 50–950 ramp

primary
#AFB41E
secondary
#6663CB
accent
#3AEE40
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB41E

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

Preview Lab → · Contrast checker → · Palette generator →

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