#AFB125#AFB125

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

Color values

HEX#AFB125
RGBrgb(175, 177, 37)
HSLhsl(61, 65%, 42%)
HSVhsv(61, 79%, 69%)
CMYKcmyk(1.1%, 0%, 79.1%, 30.6%)
CIE-LABlab(69.96, -16.50, 65.05)
CIE-LCHlch(69.96, 67.11, 104.23°)
OKLaboklab(73.54% -0.0527 0.1413)
OKLCHoklch(73.54% 0.151 110.5)
XYZxyz(33.7365, 40.6928, 7.8273)
Luminance0.4069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB125 #2725B1
analogous
#B16D25 #AFB125 #69B125
triadic
#AFB125 #25AFB1 #B125AF
tetradic
#AFB125 #25B16D #2725B1 #B12569
square
#AFB125 #25B16D #2725B1 #B12569
split-complementary
#AFB125 #2569B1 #6D25B1
monochromatic
#4B4C10 #7D7E1A #AFB125 #D4D63D #DFE16F

Accessibility & contrast

On white

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

On black

9.14
#AFB125 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB125
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB125#FFFFFF#000000##000000
##AFB1251.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb125;
/* rgb */ color: rgb(175, 177, 37);
/* oklch */ color: oklch(73.5% 0.151 110.5);
Tailwind
colors: {
  custom: {
    50: '#cbc86d',
    500: '#afb125',
    950: '#000000',
  },
}
SCSS
$custom: #afb125;
$custom-light: #cbc86d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb125",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 37
  },
  "hsl": {
    "h": 60.857,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.73538,
    "c": 0.15082,
    "h": 110.5
  },
  "luminance": 0.40692
}

Semantic roles & 50–950 ramp

primary
#AFB125
secondary
#6B6AC8
accent
#3FE842
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #AFB125

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

Preview Lab → · Contrast checker → · Palette generator →

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