#AFB42F#AFB42F

#AFB42F 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#AFB42F
RGBrgb(175, 180, 47)
HSLhsl(62, 59%, 45%)
HSVhsv(62, 74%, 71%)
CMYKcmyk(2.8%, 0%, 73.9%, 29.4%)
CIE-LABlab(70.85, -17.61, 62.71)
CIE-LCHlch(70.85, 65.13, 105.69°)
OKLaboklab(74.26% -0.055 0.1382)
OKLCHoklch(74.26% 0.149 111.7)
XYZxyz(34.5147, 41.9626, 8.9702)
Luminance0.4196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB42F #342FB4
analogous
#B4772F #AFB42F #6CB42F
triadic
#AFB42F #2FAFB4 #B42FAF
tetradic
#AFB42F #2FB477 #342FB4 #B42F6C
square
#AFB42F #2FB477 #342FB4 #B42F6C
split-complementary
#AFB42F #2F6CB4 #772FB4
monochromatic
#515316 #808322 #AFB42F #CCD14F #DADE80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB42F#FFFFFF#000000##000000
##AFB42F1.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)
#C2AC13
Deuteranopia (green-blind)
#C3AF3A
Tritanopia (blue-blind)
#BBA99B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb42f;
/* rgb */ color: rgb(175, 180, 47);
/* oklch */ color: oklch(74.3% 0.149 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca72',
    500: '#afb42f',
    950: '#000000',
  },
}
SCSS
$custom: #afb42f;
$custom-light: #caca72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb42f",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 62.256,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74262,
    "c": 0.14868,
    "h": 111.7
  },
  "luminance": 0.41962
}

Semantic roles & 50–950 ramp

primary
#AFB42F
secondary
#7B78C7
accent
#46E24C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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