#AFB229#AFB229

#AFB229 is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.8% C 0.150 H 110.9°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#AFB229
RGBrgb(175, 178, 41)
HSLhsl(61, 63%, 43%)
HSVhsv(61, 77%, 70%)
CMYKcmyk(1.7%, 0%, 77%, 30.2%)
CIE-LABlab(70.26, -16.86, 64.11)
CIE-LCHlch(70.26, 66.29, 104.73°)
OKLaboklab(73.78% -0.0534 0.1401)
OKLCHoklch(73.78% 0.15 110.9)
XYZxyz(34.0010, 41.1158, 8.2425)
Luminance0.4112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB229 #2C29B2
analogous
#B27029 #AFB229 #6AB229
triadic
#AFB229 #29AFB2 #B229AF
tetradic
#AFB229 #29B270 #2C29B2 #B2296A
square
#AFB229 #29B270 #2C29B2 #B2296A
split-complementary
#AFB229 #296AB2 #7029B2
monochromatic
#4D4F12 #7E801E #AFB229 #D1D444 #DDDF76

Accessibility & contrast

On white

2.28
#AFB229 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#AFB229 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB229
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB229#FFFFFF#000000##000000
##AFB2291.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA01
Deuteranopia (green-blind)
#C1AD35
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb229;
/* rgb */ color: rgb(175, 178, 41);
/* oklch */ color: oklch(73.8% 0.150 110.9);
Tailwind
colors: {
  custom: {
    50: '#cbc86f',
    500: '#afb229',
    950: '#000000',
  },
}
SCSS
$custom: #afb229;
$custom-light: #cbc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb229",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 41
  },
  "hsl": {
    "h": 61.314,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73782,
    "c": 0.14988,
    "h": 110.9
  },
  "luminance": 0.41115
}

Semantic roles & 50–950 ramp

primary
#AFB229
secondary
#7270C7
accent
#42E646
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB229

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

Preview Lab → · Contrast checker → · Palette generator →

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