#AFB31A#AFB31A

#AFB31A is a light, vivid yellow. Relative luminance 0.414; OKLCH L 73.9% C 0.157 H 111.3°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFB31A
RGBrgb(175, 179, 26)
HSLhsl(62, 75%, 40%)
HSVhsv(62, 85%, 70%)
CMYKcmyk(2.2%, 0%, 85.5%, 29.8%)
CIE-LABlab(70.48, -17.85, 68.28)
CIE-LCHlch(70.48, 70.58, 104.65°)
OKLaboklab(73.94% -0.0572 0.1464)
OKLCHoklch(73.94% 0.157 111.3)
XYZxyz(33.9870, 41.4297, 7.1835)
Luminance0.4143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB31A #1E1AB3
analogous
#B36B1A #AFB31A #62B31A
triadic
#AFB31A #1AAFB3 #B31AAF
tetradic
#AFB31A #1AB36B #1E1AB3 #B31A62
square
#AFB31A #1AB36B #1E1AB3 #B31A62
split-complementary
#AFB31A #1A62B3 #6B1AB3
monochromatic
#47480A #7B7E12 #AFB31A #DBE02A #E4E860

Accessibility & contrast

On white

2.26
#AFB31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#AFB31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB31A
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB31A#FFFFFF#000000##000000
##AFB31A1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb31a;
/* rgb */ color: rgb(175, 179, 26);
/* oklch */ color: oklch(73.9% 0.157 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc969',
    500: '#afb31a',
    950: '#000000',
  },
}
SCSS
$custom: #afb31a;
$custom-light: #cbc969;
$custom-dark: #000000;
JSON
{
  "hex": "#afb31a",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 61.569,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.73938,
    "c": 0.15716,
    "h": 111.3
  },
  "luminance": 0.41429
}

Semantic roles & 50–950 ramp

primary
#AFB31A
secondary
#605DCC
accent
#37F13B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB31A

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

Preview Lab → · Contrast checker → · Palette generator →

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