#AFB42E#AFB42E

#AFB42E is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.3% C 0.149 H 111.7°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#AFB42E
RGBrgb(175, 180, 46)
HSLhsl(62, 59%, 44%)
HSVhsv(62, 74%, 71%)
CMYKcmyk(2.8%, 0%, 74.4%, 29.4%)
CIE-LABlab(70.84, -17.66, 63.04)
CIE-LCHlch(70.84, 65.47, 105.65°)
OKLaboklab(74.26% -0.0552 0.1387)
OKLCHoklch(74.26% 0.149 111.7)
XYZxyz(34.4948, 41.9546, 8.8652)
Luminance0.4195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB42E #332EB4
analogous
#B4762E #AFB42E #6CB42E
triadic
#AFB42E #2EAFB4 #B42EAF
tetradic
#AFB42E #2EB476 #332EB4 #B42E6C
square
#AFB42E #2EB476 #332EB4 #B42E6C
split-complementary
#AFB42E #2E6CB4 #762EB4
monochromatic
#505315 #808322 #AFB42E #CDD24E #DBDE7E

Accessibility & contrast

On white

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

On black

9.39
#AFB42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB42E
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB42E#FFFFFF#000000##000000
##AFB42E1.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC10
Deuteranopia (green-blind)
#C3AF39
Tritanopia (blue-blind)
#BBA99B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb42e;
/* rgb */ color: rgb(175, 180, 46);
/* oklch */ color: oklch(74.3% 0.149 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca71',
    500: '#afb42e',
    950: '#000000',
  },
}
SCSS
$custom: #afb42e;
$custom-light: #caca71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb42e",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 62.239,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74256,
    "c": 0.14925,
    "h": 111.7
  },
  "luminance": 0.41954
}

Semantic roles & 50–950 ramp

primary
#AFB42E
secondary
#7A77C7
accent
#45E24B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB42E

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

Preview Lab → · Contrast checker → · Palette generator →

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