#AFB727#AFB727

#AFB727 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.156 H 112.9°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#AFB727
RGBrgb(175, 183, 39)
HSLhsl(63, 65%, 44%)
HSVhsv(63, 79%, 72%)
CMYKcmyk(4.4%, 0%, 78.7%, 28.2%)
CIE-LABlab(71.64, -19.45, 65.96)
CIE-LCHlch(71.64, 68.77, 106.43°)
OKLaboklab(74.89% -0.0607 0.1436)
OKLCHoklch(74.89% 0.156 112.9)
XYZxyz(34.9801, 43.1282, 8.4010)
Luminance0.4313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB727 #2F27B7
analogous
#B77727 #AFB727 #67B727
triadic
#AFB727 #27AFB7 #B727AF
tetradic
#AFB727 #27B777 #2F27B7 #B72767
square
#AFB727 #27B777 #2F27B7 #B72767
split-complementary
#AFB727 #2767B7 #7727B7
monochromatic
#4F5211 #7F851C #AFB727 #CFD744 #DCE276

Accessibility & contrast

On white

2.18
#AFB727 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#AFB727 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB727
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB727#FFFFFF#000000##000000
##AFB7271.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B134
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb727;
/* rgb */ color: rgb(175, 183, 39);
/* oklch */ color: oklch(74.9% 0.156 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc6e',
    500: '#afb727',
    950: '#000000',
  },
}
SCSS
$custom: #afb727;
$custom-light: #cbcc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb727",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 39
  },
  "hsl": {
    "h": 63.333,
    "s": 64.865,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74887,
    "c": 0.15595,
    "h": 112.9
  },
  "luminance": 0.43127
}

Semantic roles & 50–950 ramp

primary
#AFB727
secondary
#7570C9
accent
#40E849
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB727

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

Preview Lab → · Contrast checker → · Palette generator →

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