#AFB31B#AFB31B

#AFB31B 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#AFB31B
RGBrgb(175, 179, 27)
HSLhsl(62, 74%, 40%)
HSVhsv(62, 85%, 70%)
CMYKcmyk(2.2%, 0%, 84.9%, 29.8%)
CIE-LABlab(70.48, -17.82, 68.06)
CIE-LCHlch(70.48, 70.36, 104.67°)
OKLaboklab(73.94% -0.0571 0.1461)
OKLCHoklch(73.94% 0.157 111.3)
XYZxyz(33.9984, 41.4342, 7.2434)
Luminance0.4143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB31B #1F1BB3
analogous
#B36B1B #AFB31B #63B31B
triadic
#AFB31B #1BAFB3 #B31BAF
tetradic
#AFB31B #1BB36B #1F1BB3 #B31B63
square
#AFB31B #1BB36B #1F1BB3 #B31B63
split-complementary
#AFB31B #1B63B3 #6B1BB3
monochromatic
#47490B #7B7E13 #AFB31B #DADF2C #E4E761

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB31B#FFFFFF#000000##000000
##AFB31B1.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)
#C2AB00
Deuteranopia (green-blind)
#C3AE2C
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb31b;
/* rgb */ color: rgb(175, 179, 27);
/* oklch */ color: oklch(73.9% 0.157 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc969',
    500: '#afb31b',
    950: '#000000',
  },
}
SCSS
$custom: #afb31b;
$custom-light: #cbc969;
$custom-dark: #000000;
JSON
{
  "hex": "#afb31b",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 27
  },
  "hsl": {
    "h": 61.579,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.73941,
    "c": 0.15683,
    "h": 111.3
  },
  "luminance": 0.41433
}

Semantic roles & 50–950 ramp

primary
#AFB31B
secondary
#615ECC
accent
#37F03C
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB31B

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

Preview Lab → · Contrast checker → · Palette generator →

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