#AFB31E#AFB31E

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

Color values

HEX#AFB31E
RGBrgb(175, 179, 30)
HSLhsl(62, 71%, 41%)
HSVhsv(62, 83%, 70%)
CMYKcmyk(2.2%, 0%, 83.2%, 29.8%)
CIE-LABlab(70.49, -17.74, 67.37)
CIE-LCHlch(70.49, 69.67, 104.75°)
OKLaboklab(73.95% -0.0566 0.1451)
OKLCHoklch(73.95% 0.156 111.3)
XYZxyz(34.0349, 41.4488, 7.4356)
Luminance0.4145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB31E #221EB3
analogous
#B36C1E #AFB31E #64B31E
triadic
#AFB31E #1EAFB3 #B31EAF
tetradic
#AFB31E #1EB36C #221EB3 #B31E64
square
#AFB31E #1EB36C #221EB3 #B31E64
split-complementary
#AFB31E #1E64B3 #6C1EB3
monochromatic
#494A0C #7C7F15 #AFB31E #D8DD32 #E2E566

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB31E#FFFFFF#000000##000000
##AFB31E1.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: #afb31e;
/* rgb */ color: rgb(175, 179, 30);
/* oklch */ color: oklch(74.0% 0.156 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc96a',
    500: '#afb31e',
    950: '#000000',
  },
}
SCSS
$custom: #afb31e;
$custom-light: #cbc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb31e",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 30
  },
  "hsl": {
    "h": 61.611,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73953,
    "c": 0.15574,
    "h": 111.3
  },
  "luminance": 0.41448
}

Semantic roles & 50–950 ramp

primary
#AFB31E
secondary
#6562CB
accent
#3AEE3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB31E

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

Preview Lab → · Contrast checker → · Palette generator →

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