#AFB12D#AFB12D

#AFB12D is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.6% C 0.147 H 110.4°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AFB12D
RGBrgb(175, 177, 45)
HSLhsl(61, 59%, 44%)
HSVhsv(61, 75%, 69%)
CMYKcmyk(1.1%, 0%, 74.6%, 30.6%)
CIE-LABlab(70.00, -16.18, 62.59)
CIE-LCHlch(70.00, 64.65, 104.50°)
OKLaboklab(73.58% -0.0512 0.1375)
OKLCHoklch(73.58% 0.147 110.4)
XYZxyz(33.8762, 40.7487, 8.5629)
Luminance0.4075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB12D #2F2DB1
analogous
#B1712D #AFB12D #6DB12D
triadic
#AFB12D #2DAFB1 #B12DAF
tetradic
#AFB12D #2DB171 #2F2DB1 #B12D6D
square
#AFB12D #2DB171 #2F2DB1 #B12D6D
split-complementary
#AFB12D #2D6DB1 #712DB1
monochromatic
#4F4F14 #7F8021 #AFB12D #CFD14A #DCDD7B

Accessibility & contrast

On white

2.30
#AFB12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#AFB12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB12D
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB12D#FFFFFF#000000##000000
##AFB12D1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA90F
Deuteranopia (green-blind)
#C0AD38
Tritanopia (blue-blind)
#BBA698
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb12d;
/* rgb */ color: rgb(175, 177, 45);
/* oklch */ color: oklch(73.6% 0.147 110.4);
Tailwind
colors: {
  custom: {
    50: '#cac870',
    500: '#afb12d',
    950: '#000000',
  },
}
SCSS
$custom: #afb12d;
$custom-light: #cac870;
$custom-dark: #000000;
JSON
{
  "hex": "#afb12d",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 45
  },
  "hsl": {
    "h": 60.909,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73582,
    "c": 0.14674,
    "h": 110.4
  },
  "luminance": 0.40748
}

Semantic roles & 50–950 ramp

primary
#AFB12D
secondary
#7574C6
accent
#45E348
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB12D

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

Preview Lab → · Contrast checker → · Palette generator →

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