#AFB131#AFB131

#AFB131 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.6% C 0.144 H 110.4°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#AFB131
RGBrgb(175, 177, 49)
HSLhsl(61, 57%, 44%)
HSVhsv(61, 72%, 69%)
CMYKcmyk(1.1%, 0%, 72.3%, 30.6%)
CIE-LABlab(70.02, -16.00, 61.23)
CIE-LCHlch(70.02, 63.29, 104.64°)
OKLaboklab(73.61% -0.0503 0.1354)
OKLCHoklch(73.61% 0.144 110.4)
XYZxyz(33.9569, 40.7809, 8.9879)
Luminance0.4078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB131 #3331B1
analogous
#B17331 #AFB131 #6FB131
triadic
#AFB131 #31AFB1 #B131AF
tetradic
#AFB131 #31B173 #3331B1 #B1316F
square
#AFB131 #31B173 #3331B1 #B1316F
split-complementary
#AFB131 #316FB1 #7331B1
monochromatic
#505116 #808124 #AFB131 #CDCF51 #DBDC80

Accessibility & contrast

On white

2.29
#AFB131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#AFB131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB131
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB131#FFFFFF#000000##000000
##AFB1311.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA919
Deuteranopia (green-blind)
#C0AD3B
Tritanopia (blue-blind)
#BBA698
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb131;
/* rgb */ color: rgb(175, 177, 49);
/* oklch */ color: oklch(73.6% 0.144 110.4);
Tailwind
colors: {
  custom: {
    50: '#cac872',
    500: '#afb131',
    950: '#000000',
  },
}
SCSS
$custom: #afb131;
$custom-light: #cac872;
$custom-dark: #000000;
JSON
{
  "hex": "#afb131",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 49
  },
  "hsl": {
    "h": 60.938,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73608,
    "c": 0.14442,
    "h": 110.4
  },
  "luminance": 0.4078
}

Semantic roles & 50–950 ramp

primary
#AFB131
secondary
#7A79C5
accent
#48E04A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB131

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

Preview Lab → · Contrast checker → · Palette generator →

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