#AFB31F#AFB31F

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

Color values

HEX#AFB31F
RGBrgb(175, 179, 31)
HSLhsl(62, 70%, 41%)
HSVhsv(62, 83%, 70%)
CMYKcmyk(2.2%, 0%, 82.7%, 29.8%)
CIE-LABlab(70.49, -17.71, 67.13)
CIE-LCHlch(70.49, 69.42, 104.78°)
OKLaboklab(73.96% -0.0565 0.1447)
OKLCHoklch(73.96% 0.155 111.3)
XYZxyz(34.0479, 41.4540, 7.5039)
Luminance0.4145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB31F #231FB3
analogous
#B36D1F #AFB31F #65B31F
triadic
#AFB31F #1FAFB3 #B31FAF
tetradic
#AFB31F #1FB36D #231FB3 #B31F65
square
#AFB31F #1FB36D #231FB3 #B31F65
split-complementary
#AFB31F #1F65B3 #6D1FB3
monochromatic
#494B0D #7C7F16 #AFB31F #D7DC33 #E1E568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB31F#FFFFFF#000000##000000
##AFB31F1.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)
#C2AE2E
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb31f;
/* rgb */ color: rgb(175, 179, 31);
/* oklch */ color: oklch(74.0% 0.155 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96b',
    500: '#afb31f',
    950: '#000000',
  },
}
SCSS
$custom: #afb31f;
$custom-light: #cbc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb31f",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 61.622,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73957,
    "c": 0.15536,
    "h": 111.3
  },
  "luminance": 0.41453
}

Semantic roles & 50–950 ramp

primary
#AFB31F
secondary
#6664CA
accent
#3BED3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB31F

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

Preview Lab → · Contrast checker → · Palette generator →

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