#AFB11B#AFB11B

#AFB11B is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.5% C 0.155 H 110.5°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#AFB11B
RGBrgb(175, 177, 27)
HSLhsl(61, 74%, 40%)
HSVhsv(61, 85%, 69%)
CMYKcmyk(1.1%, 0%, 84.7%, 30.6%)
CIE-LABlab(69.92, -16.81, 67.60)
CIE-LCHlch(69.92, 69.66, 103.97°)
OKLaboklab(73.5% -0.0543 0.1451)
OKLCHoklch(73.5% 0.155 110.5)
XYZxyz(33.6005, 40.6384, 7.1107)
Luminance0.4064 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB11B #1D1BB1
analogous
#B1681B #AFB11B #64B11B
triadic
#AFB11B #1BAFB1 #B11BAF
tetradic
#AFB11B #1BB168 #1D1BB1 #B11B64
square
#AFB11B #1BB168 #1D1BB1 #B11B64
split-complementary
#AFB11B #1B64B1 #681BB1
monochromatic
#46470B #7A7C13 #AFB11B #DCDF2B #E5E760

Accessibility & contrast

On white

2.30
#AFB11B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#AFB11B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB11B
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB11B#FFFFFF#000000##000000
##AFB11B1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C1AD2B
Tritanopia (blue-blind)
#BCA597
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb11b;
/* rgb */ color: rgb(175, 177, 27);
/* oklch */ color: oklch(73.5% 0.155 110.5);
Tailwind
colors: {
  custom: {
    50: '#cbc869',
    500: '#afb11b',
    950: '#000000',
  },
}
SCSS
$custom: #afb11b;
$custom-light: #cbc869;
$custom-dark: #000000;
JSON
{
  "hex": "#afb11b",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 27
  },
  "hsl": {
    "h": 60.8,
    "s": 73.529,
    "l": 40
  },
  "oklch": {
    "l": 0.73496,
    "c": 0.15489,
    "h": 110.5
  },
  "luminance": 0.40637
}

Semantic roles & 50–950 ramp

primary
#AFB11B
secondary
#5E5DCB
accent
#38F03A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB11B

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

Preview Lab → · Contrast checker → · Palette generator →

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