#AFB027#AFB027

#AFB027 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.149 H 110.0°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#AFB027
RGBrgb(175, 176, 39)
HSLhsl(60, 64%, 42%)
HSVhsv(60, 78%, 69%)
CMYKcmyk(0.6%, 0%, 77.8%, 31%)
CIE-LABlab(69.69, -15.92, 64.22)
CIE-LCHlch(69.69, 66.16, 103.92°)
OKLaboklab(73.33% -0.0509 0.1399)
OKLCHoklch(73.33% 0.149 110)
XYZxyz(33.5720, 40.3121, 7.9316)
Luminance0.4031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB027 #2827B0
analogous
#B06D27 #AFB027 #6BB027
triadic
#AFB027 #27AFB0 #B027AF
tetradic
#AFB027 #27B06D #2827B0 #B0276B
square
#AFB027 #27B06D #2827B0 #B0276B
split-complementary
#AFB027 #276BB0 #6D27B0
monochromatic
#4B4C11 #7D7E1C #AFB027 #D4D540 #DFE072

Accessibility & contrast

On white

2.32
#AFB027 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#AFB027 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB027
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB027#FFFFFF#000000##000000
##AFB0271.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#C0AC33
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb027;
/* rgb */ color: rgb(175, 176, 39);
/* oklch */ color: oklch(73.3% 0.149 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76e',
    500: '#afb027',
    950: '#000000',
  },
}
SCSS
$custom: #afb027;
$custom-light: #cbc76e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb027",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 39
  },
  "hsl": {
    "h": 60.438,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.73326,
    "c": 0.14889,
    "h": 110
  },
  "luminance": 0.40311
}

Semantic roles & 50–950 ramp

primary
#AFB027
secondary
#6D6CC7
accent
#41E742
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB027

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

Preview Lab → · Contrast checker → · Palette generator →

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